|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
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.
| 字段摘要 | |
|---|---|
protected BodyContent |
bodyContent
The current BodyContent for this BodyTag. |
| 从类 javax.servlet.jsp.tagext.TagSupport 继承的字段 |
|---|
id, pageContext |
| 从接口 javax.servlet.jsp.tagext.BodyTag 继承的字段 |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 从接口 javax.servlet.jsp.tagext.IterationTag 继承的字段 |
|---|
EVAL_BODY_AGAIN |
| 从接口 javax.servlet.jsp.tagext.Tag 继承的字段 |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| 构造方法摘要 | |
|---|---|
BodyTagSupport()
Default constructor, all subclasses are required to only define a public constructor with the same signature, and to call the superclass constructor. |
|
| 方法摘要 | |
|---|---|
int |
doAfterBody()
After the body evaluation: do not reevaluate and continue with the page. |
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE. |
void |
doInitBody()
Prepare for evaluation of the body just before the first body evaluation: no action. |
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED. |
BodyContent |
getBodyContent()
Get current bodyContent. |
JspWriter |
getPreviousOut()
Get surrounding out JspWriter. |
void |
release()
Release state. |
void |
setBodyContent(BodyContent b)
Prepare for evaluation of the body: stash the bodyContent away. |
| 从类 javax.servlet.jsp.tagext.TagSupport 继承的方法 |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.servlet.jsp.tagext.Tag 继承的方法 |
|---|
getParent, setPageContext, setParent |
| 字段详细信息 |
|---|
protected BodyContent bodyContent
| 构造方法详细信息 |
|---|
public BodyTagSupport()
| 方法详细信息 |
|---|
public int doStartTag()
throws JspException
Tag 中的 doStartTagTagSupport 中的 doStartTagJspException - if an error occurred while processing this tagTag.doStartTag()
public int doEndTag()
throws JspException
Tag 中的 doEndTagTagSupport 中的 doEndTagJspException - if an error occurred while processing this tagTag.doEndTag()public void setBodyContent(BodyContent b)
BodyTag 中的 setBodyContentb - the BodyContentdoAfterBody(),
doInitBody(),
BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)
public void doInitBody()
throws JspException
BodyTag 中的 doInitBodyJspException - if an error occurred while processing this tagsetBodyContent(javax.servlet.jsp.tagext.BodyContent),
doAfterBody(),
BodyTag.doInitBody()
public int doAfterBody()
throws JspException
IterationTag 中的 doAfterBodyTagSupport 中的 doAfterBodyJspException - if an error occurred while processing this tagdoInitBody(),
IterationTag.doAfterBody()public void release()
Tag 中的 releaseTagSupport 中的 releaseTag.release()public BodyContent getBodyContent()
public JspWriter getPreviousOut()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||