Name
TagData
Synopsis
Class Name: |
javax.servlet.jsp.tagext.TagData |
Extends: |
None |
Implements: |
Cloneable |
Implemented by: |
Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project). |
Description
TagData
instances are created by the JSP container
during the translation phase, and provide information about the
attribute values specified for a custom action to the
TagExtraInfo
subclass for the corresponding tag
handler, if any.
Class Summary
public class TagData implements Cloneable { // Constants public static final Object REQUEST_TIME_VALUE; // Constructor public TagData(Object[][] atts); public TagData(java.util.Hashtable attrs); // Methods public Object getAttribute(String attName); public String getAttributeString(String attName); public String getId( ); public void setAttribute(String attName, Object value); }
Constructors
-
public TagData(Object[][] atts)
Creates a new instance with the attribute name/value pairs specified by the
Object[][]
. Element of eachObject[]
contains the name, and Element 1 contains 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 ...
Get Java Server Pages 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.