Name

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.

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

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.

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

Get JavaServer Pages Pocket Reference 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.