|
||||||||||
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
public class BodyTagSupport
Convenience class defining default behavior for a BodyTag. Most implementations will extend BodyTagSupport instead of implementing BodyTag directly.
The default behavior executes the body once, ignoring the contents.
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_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
BodyTagSupport()
Implementing tags must implement a zero-arg constructor. |
Method Summary | |
---|---|
int |
doAfterBody()
Action after the body completes, returning EVAL_BODY_TAG to loop and SKIP_BODY to stop looping. |
void |
doInitBody()
The default init action is to do nothing. |
int |
doStartTag()
The default start action is EVAL_BODY_TAG, i.e. |
BodyContent |
getBodyContent()
Returns the tag's body content. |
JspWriter |
getPreviousOut()
Returns the enclosing writer. |
void |
release()
Release the tag. |
void |
setBodyContent(BodyContent bodyContent)
Called by the JSP engine just before calling doInitBody(). |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doEndTag, 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 |
---|
doEndTag, getParent, setPageContext, setParent |
Field Detail |
---|
protected BodyContent bodyContent
Constructor Detail |
---|
public BodyTagSupport()
Method Detail |
---|
public void setBodyContent(BodyContent bodyContent)
setBodyContent
in interface BodyTag
bodyContent
- a bodyContent generated by the JSP engine.public BodyContent getBodyContent()
public JspWriter getPreviousOut()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
The default action is to only execute the body once.
doAfterBody
in interface BodyTag
doAfterBody
in interface IterationTag
doAfterBody
in class TagSupport
JspException
public void release()
release
in interface Tag
release
in class TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |