public class BodyTagSupport extends TagSupport implements BodyTag
Modifier and Type | Field and Description |
---|---|
protected BodyContent |
bodyContent
Current bodyContent.
|
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
BodyTagSupport()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Default processing.
|
int |
doEndTag()
Default processing of the end tag
|
void |
doInitBody()
Prepare for the evaluation of the body.
|
int |
doStartTag()
Default processing of the start tag
|
BodyContent |
getBodyContent() |
Tag |
getParent()
Get the parent tag.
|
JspWriter |
getPreviousOut() |
void |
release() |
void |
setBodyContent(BodyContent bodyContent)
Prepare for evaluation of the body.
|
void |
setParent(Tag parent)
Set the parent tag.
|
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setPageContext, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPageContext
protected BodyContent bodyContent
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
Tag.doStartTag()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
Tag.doEndTag()
public void setBodyContent(BodyContent bodyContent)
setBodyContent
in interface BodyTag
bodyContent
- the body contentdoInitBody()
,
doAfterBody()
,
BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
setBodyContent(javax.servlet.jsp.tagext.BodyContent)
,
doAfterBody()
,
BodyTag.doInitBody()
public int doAfterBody() throws JspException
TagSupport
doAfterBody
in interface IterationTag
doAfterBody
in class TagSupport
JspException
- if there is an error while processing this tag.doInitBody()
,
IterationTag.doAfterBody()
public void release()
release
in interface Tag
release
in class TagSupport
Tag.release()
public BodyContent getBodyContent()
public JspWriter getPreviousOut()
public void setParent(Tag parent)
TagSupport
setParent
in interface Tag
setParent
in class TagSupport
parent
- the parent tagpublic Tag getParent()
TagSupport
getParent
in interface Tag
getParent
in class TagSupport
TagSupport.findAncestorWithClass(javax.servlet.jsp.tagext.Tag,java.lang.Class)