| |
|
| java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport
BodyTagSupport | public class BodyTagSupport extends TagSupport implements BodyTag(Code) | | A base class for defining tag handlers implementing BodyTag.
The BodyTagSupport class implements the BodyTag interface and adds
additional convenience methods including getter methods for the
bodyContent property and methods to get at the previous out JspWriter.
Many tag handlers will extend BodyTagSupport and only redefine a
few methods.
|
Constructor Summary | |
public | 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 | |
public int | doAfterBody() After the body evaluation: do not reevaluate and continue with the page. | public int | doEndTag() Default processing of the end tag returning EVAL_PAGE. | public void | doInitBody() Prepare for evaluation of the body just before the first body evaluation:
no action. | public int | doStartTag() Default processing of the start tag returning EVAL_BODY_BUFFERED. | public BodyContent | getBodyContent() Get current bodyContent. | public JspWriter | getPreviousOut() Get surrounding out JspWriter. | public void | release() Release state. | public void | setBodyContent(BodyContent b) Prepare for evaluation of the body: stash the bodyContent away. |
bodyContent | protected BodyContent bodyContent(Code) | | The current BodyContent for this BodyTag.
|
BodyTagSupport | public BodyTagSupport()(Code) | | Default constructor, all subclasses are required to only define
a public constructor with the same signature, and to call the
superclass constructor.
This constructor is called by the code generated by the JSP
translator.
|
doEndTag | public int doEndTag() throws JspException(Code) | | Default processing of the end tag returning EVAL_PAGE.
EVAL_PAGE throws: JspException - if an error occurred while processing this tag See Also: Tag.doEndTag |
doStartTag | public int doStartTag() throws JspException(Code) | | Default processing of the start tag returning EVAL_BODY_BUFFERED.
EVAL_BODY_BUFFERED throws: JspException - if an error occurred while processing this tag See Also: BodyTag.doStartTag |
getBodyContent | public BodyContent getBodyContent()(Code) | | Get current bodyContent.
the body content. |
getPreviousOut | public JspWriter getPreviousOut()(Code) | | Get surrounding out JspWriter.
the enclosing JspWriter, from the bodyContent. |
|
|
|