public class BodyTagSupport extends TagSupport implements BodyTag
| Modifier and Type | Field and Description |
|---|---|
protected BodyContent |
bodyContent |
id, pageContextEVAL_BODY_TAGEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
BodyTagSupport()
Default constructor, all subclasses are required to only define
a public constructor with the same signature, and to call the
superclass constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Actions after some body has been evaluated.
|
int |
doEndTag()
Process the end tag.
|
void |
doInitBody()
Prepare for evaluation of the body
It will be invoked at most once per action invocation.
|
int |
doStartTag()
Process the start tag for this instance.
|
BodyContent |
getBodyContent()
Get current bodyContent
|
JspWriter |
getPreviousOut()
Get surrounding out
|
void |
release()
reset the state of the Tag
|
void |
setBodyContent(BodyContent b)
Prepare for evaluation of the body
It will be invoked at most once per action invocation.
|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, setPageContext, setParentprotected BodyContent bodyContent
public BodyTagSupport()
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspExceptionBodyTagpublic int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspExceptionpublic void setBodyContent(BodyContent b)
setBodyContent in interface BodyTagb - the BodyContentpublic void doInitBody()
throws JspException
doInitBody in interface BodyTagJspExceptionpublic int doAfterBody()
throws JspException
The method re-invocations may be lead to different actions because there might have been some changes to shared state, or because of external computation.
doAfterBody in interface BodyTagJspExceptionpublic void release()
release in interface Tagrelease in class TagSupportpublic BodyContent getBodyContent()
public JspWriter getPreviousOut()
Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.