String getID() Returns the value of the ID type attribute or null if no ID attribute exists. void setAttribute( String attName, ObjectattValue ) Sets the value of the attribute named attName to the value attValue. String getID() Returns the value of the ID type attribute or null if no ID attribute exists. void setAttribute( String attName, ObjectattValue ) Sets the value of the attribute named attName to the value attValue. The TagData class contains a variable coded as follows: static Object REQUEST_TIME_VALUE This variable tells the JSP container that the value of an attribute is available as a run-time expression, but will not be available at translation time. TheTagExtraInfo Class This class provides extra information about a custom tag. To associate a TagExtraInfo class with a tag handler class, this class must be mentioned in the Tag Library Descriptor file (tld). This class must be used if the tag defines any scripting variables or if the tag wants to provide translation-time validation of the tag attributes. Table A-18 lists the methods for the TagExtraInfo class. Table A-18: Methods in the TagExtraInfo Class Method Signature Description TagInfo getTagInfo() Returns the instance of TagInfo for the tag class. VariableInfo[] getVariableInfo( TagData td ) Returns information on scripting variables defined by this tag. boolean isValid() Translation-time validation of tag attributes. void setTagInfo( TagInfo ti ) Sets the TagInfo object for this class. The class contains an instance variable coded as follows: protected TagInfo tagInfo ; This instance variable represents the instance of TagInfo associated with instances of TagExtraInfo. TheTagInfo Class Tag information for a tag in a Tag Library; this class is instantiated from the Tag Library Descriptor file (tld). Table A-19 lists the methods for the TagInfo class. Table A-19: Methods in the TagInfo Class Method Signature Description TagAttributeInfo getAttributes() Returns a TagAttributeInfo object describing the attributes of the tag or null if tag has no attributes. String getBodyContent() Returns the BodyContent object as a string. String getInfoString() Returns an information string coded in the tld. String getTagClassName() Returns the name of the class that provides the run-time handler for the tag. TagExtraInfo getTagExtraInfo() Returns the instance of the TagExtraInfo class, if any exist.
Hosting services offered by our company comes with free domain name if you pay at yearly basis. Find out more at New Orleans Web Hosting services.

Leave a Reply