Java Reference
In-Depth Information
The JavaServer Pages 1.1 specification provides a portable mechanism for the description of
tag libraries. Figure E.1 contains the
javax.servlet.jsp.tagext
object model.
java.lang.Object
<<Interface>>
Ta g
TagData
TagInfo
VariableInfo
TagAttributeInfo
TagExtraInfo
TagLibraryInfo
<<Interface>>
BodyTag
TagSupport
javax.servlet.jsp.JspWriter
BodyTagSupport
BodyContent
F
IGURE
E.1
The
javax.servlet.jsp.tagext
object model.
Interfaces
The
javax.servlet.jsp.tagext
package has two interfaces:
Tag
and
BodyTag
.
The
Tag
Interface
public interface Tag extends java.lang.Object
Actions in a tag library are defined through subclasses of the
Tag
interface. The interface has
13 fields and 19 methods, as described in the following sections.
The
bodyOut
Field
protected BodyJspWriter bodyOut
This field is used to hold the reference to the
BodyJspWriter
.