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 extend TagSupport and only redefine a few methods. Table A-22 lists the methods available in the TagSupport class. Table A-22: Methods in the TagSupport Class Method Signature Description int doEndTag() Invokes this method when processing the end tag. int doStartTag() Invokes this method when processing the start tag. static tag findAncestorWithClass( Tag from, Class tagClass ) Finds the instance of the class named tagClass that is the closest ancestor to the tag named from. Tag getParent() Returns the tag instance enclosing this tag instance. String getTagId() Returns the value of the ID attribute for this tag (if it exists), or null. Object getValue( String key ) Returns a value associated with the argument key. Enumeration getValues() Returns an enumeration representing all the values associated with this tag. void release() Invoked after a call to doEndTag to reset the state of the tag. void removeValue( String key ) Removes a key/value pair associated with this tag. void setPageContext( PageContext pc ) Sets the PageContext for this tag. void setParent( Tag ptag ) Sets the parent (ptag) for this tag. void setTagID( String idAttr ) Sets the ID attribute of the tag. void setValue( String key, Object value ) Sets a value for a key/value pair in this tag. The TagSupport class also has two instance variables that are coded as shown in the following: protected String id ; protected PageContext pageContext ; The VariableInfo Class This class contains information on the scripting variables that are created/modified by a tag at run-time. This information is provided by TagExtraInfo classes and it is used in the translation phase of JSP. Table A-23 lists the methods available in the VariableInfo class. Table A-23: Methods in the VariableInfo Class Method Signature Description String getClassName() Returns the class name of the scripting variables coded in the tld as the
We are the the largest streaming host company, and we provide professional audio & video web hosting streaming using Real Networks, QuickTime, Flash and Windows Media.We strongly recommend you to visit and check web hosting streaming services.