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:

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).

Constructor

public TagExtraInfo( )

Creates a new TagExtraInfo instance.

Methods

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 container).

public VariableInfo[] getVariableInfo(TagData data)

Returns a VariableInfo[] with 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.

public boolean isValid(TagData data)

Returns ...

Get JavaServer Pages, Second Edition 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.