Name
TagExtraInfo
Synopsis
|
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 validation of the tag attributes, a
subclass of the TagExtraInfo class must be
developed for the custom action and declared in the Tag Library
Descriptor. The JSP container creates an instance of the
TagExtraInfo subclass during the translation
phase.
Class Summary
public abstract class TagExtraInfo {
// Constructor
public TagExtraInfo( );
// Methods
public TagInfo getTagInfo( );
public VariableInfo[] getVariableInfo(TagData data);
public boolean isValid(TagData data);
public void setTagInfo(TagInfo tagInfo);
}Constructor
-
public TagExtraInfo( ) Creates a new
TagExtraInfoinstance.
Methods
-
public TagInfo getTagInfo( ) Returns the
TagInfoinstance for the custom action associated with thisTagExtraInfoinstance. TheTagInfoinstance is set by thesetTagInfo( )method (called by the container).-
public VariableInfo[] getVariableInfo(TagData data) Returns a
VariableInfo[]with information about scripting variables created by the tag handler class associated with thisTagExtraInfoinstance. The default implementation returns an empty array. A subclass must override this method if the corresponding tag handler creates scripting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access