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
TagExtraInfo
instance.
Methods
-
public TagInfo getTagInfo( )
Returns the
TagInfo
instance for the custom action associated with thisTagExtraInfo
instance. TheTagInfo
instance 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 thisTagExtraInfo
instance. The default implementation returns an empty array. A subclass must override this method if the corresponding tag handler creates scripting ...
Get Java Server Pages now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.