javax.servlet.jsp.tagext
Class BodyTagSupport
- BodyTag, IterationTag, JspTag, 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 |
bodyContent
protected BodyContent bodyContent
The current BodyContent for this BodyTag.
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
JspException
- if an error occurred while processing this tag
doInitBody()
, 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
JspException
- if an error occurred while processing this tag
BodyTag
getBodyContent
public BodyContent getBodyContent()
Get current bodyContent.
- the body content.
getPreviousOut
public JspWriter getPreviousOut()
Get surrounding out JspWriter.
- the enclosing JspWriter, from the bodyContent.
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.