java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
All Implemented Interfaces:
IterationTag, Serializable
Direct Known Subclasses:
LoopTagSupport, ConditionalTagSupport, BodyTagSupport
The TagSupport class is a utility class intended to be used as the base class for new tag handlers. The TagSupport class implements the Tag and IterationTag interfaces and adds additional convenience methods including getter methods for the properties in Tag. TagSupport has one static method that is included to facilitate coordination among cooperating tags.
Many tag handlers will extend TagSupport and only redefine a few methods.
Field Summary | ||
---|---|---|
protected String | id | The value of the id attribute of this tag; or null. |
protected PageContext | pageContext | The PageContext. |
Constructor: |
---|
|
Method from javax.servlet.jsp.tagext.TagSupport Summary: |
---|
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.servlet.jsp.tagext.TagSupport Detail: |
---|
|
|
|
The current version of the specification only provides one formal way of indicating the observable type of a tag handler: its tag handler implementation class, described in the tag-class subelement of the tag element. This is extended in an informal manner by allowing the tag library author to indicate in the description subelement an observable type. The type should be a subtype of the tag handler implementation class or void. This addititional constraint can be exploited by a specialized container that knows about that specific tag library, as in the case of the JSP standard tag library. When a tag library author provides information on the observable type of a tag handler, client programmatic code should adhere to that constraint. Specifically, the Class passed to findAncestorWithClass should be a subtype of the observable type. |
|
|
|
|
|
|
|
|
|
|