Name
TagData
Synopsis
TagData
instances are created by the JSP
container during the translation phase to provide information about
the attribute values specified for a custom action to the
TagExtraInfo
subclass for the corresponding tag
handler, if any.
Synopsis
Class name: |
javax.servlet.jsp.tagext.TagData |
Extends: |
None |
Implements: |
Clonable |
Implemented by: |
Internal container-dependent class; most containers use the reference implementation of the class (developed in the Apache Jakarta project) |
Fields
public static final Object REQUEST_TIME_VALUE
Constructors
-
public TagData(Object[][] attrs)
Creates a new instance with the attribute name/value pairs specified by the
Object[][]
. Element 0 of eachObject[]
contains the name and element 1 the value orREQUEST_TIME_VALUE
if the attribute value is defined as a request time value (a JSP expression).-
public TagData(java.util.Hashtable attrs)
Creates a new instance with the attribute name/value pairs specified by the
Hashtable
.
Methods
-
public Object getAttribute(String attName)
Returns the specified attribute value as a
String
or as theREQUEST_TIME_VALUE
Object
if the attribute value is defined as a request-time value (a Java expression, an EL expression or set by<jsp:attribute>
).-
public java.util.Enumeration getAttributes( )
Returns an
Enumeration
of all attributes names.-
public String getAttributeString(String attName)
Returns the specified attribute value as a
String
. AClassCastException
is thrown if the attribute value is defined ...
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.