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.
doInitBody
public void doInitBody()
throws JspException
Prepare for evaluation of the body just before the first body evaluation:
no action.
- doInitBody in interface BodyTag
JspException
- if an error occurred while processing this tag
getBodyContent
public BodyContent getBodyContent()
Get current bodyContent.
getPreviousOut
public JspWriter getPreviousOut()
Get surrounding out JspWriter.
- the enclosing JspWriter, from the bodyContent.
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.