| java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport
BodyTagSupport | public class BodyTagSupport extends TagSupport implements BodyTag(Code) | | 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.
|
Constructor Summary | |
public | BodyTagSupport() Implementing tags must implement a zero-arg constructor. |
BodyTagSupport | public BodyTagSupport()(Code) | | Implementing tags must implement a zero-arg constructor.
|
doAfterBody | public int doAfterBody() throws JspException(Code) | | Action after the body completes, returning EVAL_BODY_TAG to loop and
SKIP_BODY to stop looping.
The default action is to only execute the body once.
|
doInitBody | public void doInitBody() throws JspException(Code) | | The default init action is to do nothing.
|
doStartTag | public int doStartTag() throws JspException(Code) | | The default start action is EVAL_BODY_TAG, i.e. evaluate the body.
|
getBodyContent | public BodyContent getBodyContent()(Code) | | Returns the tag's body content. The body content is in scope for
the BodyTag methods doInitBody and doAfterBody, but not for the
tag methods doStartTag and doEndTag.
|
getPreviousOut | public JspWriter getPreviousOut()(Code) | | Returns the enclosing writer. For BodyTags with no body, this is
equivalent to pageContext.getOut().
|
release | public void release()(Code) | | Release the tag.
|
setBodyContent | public void setBodyContent(BodyContent bodyContent)(Code) | | Called by the JSP engine just before calling doInitBody(). Empty
tags never have setBodyContent called on them. Because the JSP
engine reuses BodyContents, a tag cannot use the body content after
doAfterBody completes.
Parameters: bodyContent - a bodyContent generated by the JSP engine. |
|
|