A very small Classic tag handler

This example is so basic that it’s not much different from a SimpleTag handler’s doTag() method. In fact the differences won’t become painful until you try to process a tag with a body (but you’ll just have to wait for that).

A JSP that invokes a Classic tag

image with no caption

The TLD <tag> element for the Classic tag

image with no caption

The Classic tag handler

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.