Name
TagExtraInfo
Synopsis
For custom actions that use scripting variables and
require additional translation time for validation of the tag
attributes, a subclass of the TagExtraInfo class
can 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.
Note that for most cases, the variable information can instead be
declared in the TLD, and a TagLibraryValidator
class can perform validation in a more flexible manner than a
TagExtraInfo class can.
Synopsis
|
Class name: |
|
|
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). |
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 variables.-
public boolean isValid(TagData data) Returns ...
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