|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
Actions in a Tag Library are defined through subclasses of Tag.
Field Summary | |
protected BodyContent |
bodyContent
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
BodyTagSupport()
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 |
doAfterBody()
Actions after some body has been evaluated. |
int |
doEndTag()
Process the end tag. |
void |
doInitBody()
Prepare for evaluation of the body It will be invoked at most once per action invocation. |
int |
doStartTag()
Process the start tag for this instance. |
BodyContent |
getBodyContent()
Get current bodyContent |
JspWriter |
getPreviousOut()
Get surrounding out |
void |
release()
reset the state of the Tag |
void |
setBodyContent(BodyContent b)
Prepare for evaluation of the body It will be invoked at most once per action invocation. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
Field Detail |
protected BodyContent bodyContent
Constructor Detail |
public BodyTagSupport()
Method Detail |
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
public void setBodyContent(BodyContent b)
setBodyContent
in interface BodyTag
b
- the BodyContentpublic void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
The method re-invocations may be lead to different actions because there might have been some changes to shared state, or because of external computation.
doAfterBody
in interface BodyTag
JspException
public void release()
release
in interface Tag
release
in class TagSupport
public BodyContent getBodyContent()
public JspWriter getPreviousOut()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |