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
Stringor as theREQUEST_TIME_VALUEObject, if the attribute value ...
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