O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The rest of the tag handler code

The only thing left is the doTag() method. The only difference now is that the generation of the standard HTML <select> tag attributes are stored in the hashmap. The doTag() method must iterate over each entry in the map and generate the HTML attribute binding in the output stream. Everything else is the same.

Pretty easy, huh?

image with no caption

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required