|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport
Actions in a Tag Library are defined through subclasses of Tag.
Field Summary | |
protected java.lang.String |
id
|
protected PageContext |
pageContext
|
Constructor Summary | |
TagSupport()
Default constructor, all subclasses are required to only define a public constructor with the same signature, and to call the superclass constructor. |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String id
protected PageContext pageContext
Constructor Detail |
public TagSupport()
libraryPrefix
- The namespace prefix used for this library.
For example "jsp:".tagName
- The name of the element or yag, for example "useBean"Method Detail |
public static final Tag findAncestorWithClass(Tag from, java.lang.Class klass)
the
- subclass of Tag or interface to be matchedpublic int doStartTag() throws JspException
public int doEndTag() throws 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)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |