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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.