Commonly Used JSP Tag Classes and Interfaces

Commonly used interfaces and classes for the definition of JavaServer Pages tag libraries are presented in Tables 18.1 and 18.2. For the complete API, see http://java.sun.com/products/jsp.

Table 18.1. Commonly Used JSP Tag API Interfaces
InterfaceDescription
BodyTagThe BodyTag interface extends IterationTag. Used to implement tags with bodies.
IterationTagThe IterationTag interface extends Tag. Used to implement tags with bodies, where iteration is desired.
TagUsed to implement simple tags; that is, tags with no bodies.
TryCatchFinallyUsed to implement exception handling within tag body.

Table 18.2. Commonly Used JSP Tag API Classes
ClassDescription
BodyContentAbstraction of tag body content.
BodyTagSupport (see Listing 18.4)Abstract class for implementing tags with bodies. Used in lieu of the BodyTag interface.
TagExtraInfo (see Listing 18.6)Abstraction of additional information not contained in tag library descriptor.
TagSupport (see Listings 18.1, 18.2, and 18.7)Abstract class for implementing simple tags. Use in lieu of the Tag interface.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset