Monday, October 22nd, 2007
TagInfo Class Tag information for a custom tag. Instances of this class have values derived from the Tag Library Descriptor file. TagLibraryInfo Abstract Class Information on the tag library. Instances of this class have values derived from the Tag Library Descriptor file. TagSupport Class A base class used to define new tag handlers. VariableInfo Class Information on scripting variables used by a tag-handler class at runtime. TagInfo Class Tag information for a custom tag. Instances of this class have values derived from the Tag Library Descriptor file. TagLibraryInfo Abstract Class Information on the tag library. Instances of this class have values derived from the Tag Library Descriptor file. TagSupport Class A base class used to define new tag handlers. VariableInfo Class Information on scripting variables used by a tag-handler class at runtime. Let s take a closer look at these interfaces and classes. The BodyTag Interface The BodyTag interface extends Tag by defining additional methods to enable a Tag handler to access its body. The interface provides two new methods. The first method is invoked with the BodyContent for the evaluation of the body. The second method reevaluates after every body evaluation. Table A-11 lists the methods defined in the BodyTag interface. Table A-11: Methods in the BodyTag Interface Method Signature Description int doAfterBody() Performs processing after the body of a custom tag has been evaluated. int doInitBody() Performs processing before processing of the tag body. void setBodyContent() Setter method for the BodyContent property. The BodyTag interface also provides a class variable with the following declaration: static int EVAL_BODY_TAG This declaration requests the creation of new BodyContent to evaluate the body of this tag. The Tag Interface The Tag interface defines the basic protocol between a Tag handler and JSP page implementation class, describing the life cycle and the methods to be invoked at start and end tag. Table A-12 shows the methods of the Tag interface. Table A-12: Methods in the Tag Interface Method Signature Description int doStartTag() Processes the start tag. int doEndTag() Processes the end tag. Tag getParent() Returns the parent tag or null if no parent exists. void release() Calls on a tag-handler class to release the state of the tag.
Interland Web Hosting is the leader in the industry of discount and affordable web hosting. All plans are feature packed, with 24×7 tech support, automatic backups. You also get visitor statistics, spam filtering, email anti virus, and much more. Web page hosting is generally sufficient only for personal home pages.