public class TagSupport extends java.lang.Object implements Tag, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected PageContext |
pageContext |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
TagSupport()
Default constructor, all subclasses are required to only define
a public constructor with the same signature, and to call the
superclass constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Process the end tag.
|
int |
doStartTag()
Process the start tag for this instance.
|
static Tag |
findAncestorWithClass(Tag from,
java.lang.Class klass)
Find the instance of a given class type that is closest to a given
instance.
|
java.lang.String |
getId()
The value of the id attribute of this tag; or null.
|
Tag |
getParent()
The Tag instance enclosing this tag instance.
|
java.lang.Object |
getValue(java.lang.String k)
Get a value
|
java.util.Enumeration |
getValues()
Enumerate the values
|
void |
release()
release() called after doEndTag() to reset state
|
void |
removeValue(java.lang.String k)
Remove a value
|
void |
setId(java.lang.String id)
Set the id attribute
|
void |
setPageContext(PageContext pageContext)
set the page context
|
void |
setParent(Tag t)
Set the nesting tag of this tag.
|
void |
setValue(java.lang.String k,
java.lang.Object o)
Set a value
|
protected java.lang.String id
protected PageContext pageContext
public TagSupport()
libraryPrefix
- The namespace prefix used for this library.
For example "jsp:".tagName
- The name of the element or yag, for example "useBean"public static final Tag findAncestorWithClass(Tag from, java.lang.Class klass)
the
- subclass of Tag or interface to be matchedpublic int doStartTag() throws JspException
doStartTag
in interface Tag
JspException
BodyTag
public int doEndTag() throws JspException
doEndTag
in interface Tag
JspException
public void release()
public void setParent(Tag t)
public Tag getParent()
public void setId(java.lang.String id)
public java.lang.String getId()
public void setPageContext(PageContext pageContext)
setPageContext
in interface Tag
public void setValue(java.lang.String k, java.lang.Object o)
public java.lang.Object getValue(java.lang.String k)
public void removeValue(java.lang.String k)
public java.util.Enumeration getValues()
Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.