OK, let’s get real...

Remember the beer webapp from Chapter 3? Let’s improve it a bit, and automate part of the HTML form:

image with no caption

If we make the options dynamic, they’ll be easier to update and change, without messing around with the HTML. Instead, we want the options to be generated from a Java List created in the web application. So here’s the custom tag we want to build:

image with no caption

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.