Name
VariableInfo
Synopsis
|
Class Name: |
javax.servlet.jsp.tagext.VariableInfo |
|
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
VariableInfo instances are created by
TagExtraInfo subclasses to describe each scripting
variable that the corresponding tag handler class creates.
Class Summary
public class VariableInfo {
// Constants
public static final int AT_BEGIN;
public static final int AT_END;
public static final int NESTED;
// Constructor
public VariableInfo(String varName, String className,
boolean declare, int scope);
// Methods
public String getClassName( );
public boolean getDeclare( );
public int getScope( );
public String getVarName( );
}Constructor
-
public VariableInfo(String varName, String className, boolean declare, int scope) Creates a new instance with the specified values.
Methods
-
public String getClassName( ) Returns the scripting variable Java type.
-
public boolean getDeclare( ) Returns
trueif the JSP container should create a declaration statement for a scripting variable, and otherwise returnsfalse(used if the variable has already been declared by another tag handler, and is updated only by the tag handler corresponding to theTagExtraInfosubclass creating thisVariableInfoinstance).-
public int getScope( ) Returns one of
AT_BEGIN(make the scripting variable available from the start tag to the end of the JSP ...
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