Home » apache-tomcat-6.0.26-src » javax » servlet » jsp » tagext » [javadoc | source]
javax.servlet.jsp.tagext
public class: BodyTagSupport [javadoc | source]
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      javax.servlet.jsp.tagext.BodyTagSupport

All Implemented Interfaces:
    BodyTag, IterationTag, Serializable

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.
Field Summary
protected  BodyContent bodyContent    The current BodyContent for this BodyTag. 
Fields inherited from javax.servlet.jsp.tagext.TagSupport:
id,  pageContext
Constructor:
 public BodyTagSupport() 
Method from javax.servlet.jsp.tagext.BodyTagSupport Summary:
doAfterBody,   doEndTag,   doInitBody,   doStartTag,   getBodyContent,   getPreviousOut,   release,   setBodyContent
Methods from javax.servlet.jsp.tagext.TagSupport:
doAfterBody,   doEndTag,   doStartTag,   findAncestorWithClass,   getId,   getParent,   getValue,   getValues,   release,   removeValue,   setId,   setPageContext,   setParent,   setValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.jsp.tagext.BodyTagSupport Detail:
 public int doAfterBody() throws JspException 
    After the body evaluation: do not reevaluate and continue with the page. By default nothing is done with the bodyContent data (if any).
 public int doEndTag() throws JspException 
    Default processing of the end tag returning EVAL_PAGE.
 public  void doInitBody() throws JspException 
    Prepare for evaluation of the body just before the first body evaluation: no action.
 public int doStartTag() throws JspException 
    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.