javax.servlet.jsp.tagext
Class BodyTagSupport
- BodyTag, IterationTag, Serializable, Tag
public class BodyTagSupport
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.
BodyTagSupport() - Default constructor, all subclasses are required to only define
a public constructor with the same signature, and to call the
superclass constructor.
|
doAfterBody , doEndTag , doStartTag , findAncestorWithClass , getId , getParent , getValue , getValues , release , removeValue , setId , setPageContext , setParent , setValue |
BodyTagSupport
public BodyTagSupport()
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.
doAfterBody
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).
- doAfterBody in interface IterationTag
- doAfterBody in interface TagSupport
- SKIP_BODY
doEndTag
public int doEndTag()
throws JspException
Default processing of the end tag returning EVAL_PAGE.
- doEndTag in interface Tag
- doEndTag in interface TagSupport
- EVAL_PAGE
doInitBody
public void doInitBody()
throws JspException
Prepare for evaluation of the body just before the first body evaluation:
no action.
- doInitBody in interface BodyTag
doStartTag
public int doStartTag()
throws JspException
Default processing of the start tag returning EVAL_BODY_BUFFERED
- doStartTag in interface Tag
- doStartTag in interface TagSupport
- EVAL_BODY_BUFFERED;
getBodyContent
public BodyContent getBodyContent()
Get current bodyContent.
- the body content.
getPreviousOut
public JspWriter getPreviousOut()
Get surrounding out JspWriter.
- the enclosing JspWriter, from the bodyContent.
setBodyContent
public void setBodyContent(BodyContent b)
Prepare for evaluation of the body: stash the bodyContent away.
- setBodyContent in interface BodyTag
b
- the BodyContent
Copyright © 1999-2001 The Apache Software Foundation. All Rights Reserved.