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 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.