public class TagSupport extends java.lang.Object implements IterationTag, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected PageContext |
pageContext |
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
TagSupport()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Default processing.
|
int |
doEndTag()
Default processing
|
int |
doStartTag()
Default processing.
|
static Tag |
findAncestorWithClass(Tag from,
java.lang.Class klass)
Find ancestor.
|
java.lang.String |
getId()
Get the id
|
Tag |
getParent()
Get the parent tag.
|
java.lang.Object |
getValue(java.lang.String k)
Get the value
|
java.util.Enumeration |
getValues()
Enumerate all the values.
|
void |
release() |
void |
removeValue(java.lang.String k)
Remove the value of this key.
|
void |
setId(java.lang.String id)
Set the id
|
void |
setPageContext(PageContext pageContext)
Set the page context.
|
void |
setParent(Tag t)
Set the parent tag.
|
void |
setValue(java.lang.String key,
java.lang.Object object)
Set a value bind to a key
|
protected java.lang.String id
protected PageContext pageContext
public static final Tag findAncestorWithClass(Tag from, java.lang.Class klass)
from
- klass
- SimpleTagSupport.findAncestorWithClass(JspTag,Class)
public int doStartTag() throws JspException
doStartTag
in interface Tag
JspException
BodyTag
public int doEndTag() throws JspException
doEndTag
in interface Tag
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
JspException
public void release()
release
in interface Tag
Tag.release()
public void setParent(Tag t)
public Tag getParent()
getParent
in interface Tag
findAncestorWithClass(javax.servlet.jsp.tagext.Tag,java.lang.Class)
public void setId(java.lang.String id)
id
- the idpublic java.lang.String getId()
public void setPageContext(PageContext pageContext)
setPageContext
in interface Tag
pageContext
- public java.lang.Object getValue(java.lang.String k)
k
- the keypublic void setValue(java.lang.String key, java.lang.Object object)
key
- the keyobject
- public void removeValue(java.lang.String k)
k
- the keypublic java.util.Enumeration getValues()