Overview of the Steps Required to Build JSP Tags

Implementing Java classes called tag handler classes creates JSP tags. Tag handler classes implement one of two interfaces:

javax.servlet.jsp.tagext.Tag or javax.servlet.jsp.tagext.BodyTag. The Tag interface is implemented for simple JSP tags—those JSP tags without an accompanying tag body. Simple JSP tags are also referred to as empty body tags. The BodyTag interface implements tags with an accompanying tag body. Tags can also be implemented by using the abstract class javax.servlet.jsp.tagext.TagSupport or javax.servlet.jsp.tagext.BodyTagSupport. Use of these classes enables the developer to avoid implementing methods that aren't used.

Once the tag handler is implemented, the tag library descriptor ...

Get BEA WebLogic Server™ 8.1 Unleashed 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.