Name

TagVariableInfo

Synopsis

The TagVariableInfo instance represents a variable declaration in the TLD. The container creates instances of this class during the translation phase and it’s used to generate variable declarations in the JSP page implementation class.

Synopsis

Class name:

javax.servlet.jsp.tagext.TagVariableInfo

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 TagVariableInfo(String nameGiven, String nameFromAttribute, String className, boolean declare, int scope)

Creates a new instance with the specified values.

Methods

public String getClassName( )

Returns the declared class name.

public boolen getDeclare( )

Returns true if the variable is defined as one to be declared.

public String getNameFromAttribute( )

Returns the name of the attribute declared to hold the name of the variable at translation time.

public String getNameGiven( )

Returns the declared variable name.

public int getScope( )

Returns the declared scope, as one of VariableInfo.AT_BEGIN, VariableInfo.AT_END, or VariableInfo.NESTED.

Get JavaServer Pages, 3rd 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.