TagExtraInfo Class  
 
Class name:

javax.servlet.jsp.tagext.TagExtraInfo

 
Extends:

None

 
Implements:

None

 
Implemented by:

Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project).

 
Description

For custom actions that create scripting variables or require additional translation time for validation of the tag attributes, a subclass of the TagExtraInfo class must be developed and declared in the TLD. The web container creates an instance of the TagExtraInfo subclass during the translation phase.

getTagInfo()  
public TagInfo getTagInfo()

Returns the TagInfo instance for the custom action associated with this TagExtraInfo instance. The TagInfo instance is set by the setTagInfo() method (called by the web container).

getVariableInfo()  
public VariableInfo[] getVariableInfo(TagData data)

Returns a VariableInfo[] array containing information about scripting variables created by the tag handler class associated with this TagExtraInfo instance. The default implementation returns an empty array. A subclass must override this method if the corresponding tag handler creates scripting variables.

isValid()  
public boolean isValid(TagData data)

Returns true if the set of attribute values specified for the custom action associated with this TagExtraInfo instance is valid and false otherwise. The default implementation returns true. A subclass can override this method if the validation performed by the web container based on the TLD information is not enough.

setTagInfo()  
public void setTagInfo(TagInfo tagInfo)

Sets the TagInfo object for this instance. This method is called by the web container before any of the other methods are called.

TagExtraInfo()  
public TagExtraInfo()

Creates a new TagExtraInfo instance.