|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.servlet.jsp.tagext Class BodyTagSupport
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport
- 所有已实现的接口:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class BodyTagSupport
- extends TagSupport
- implements BodyTag
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.
- 另请参见:
- Serialized Form
字段摘要 | |
---|---|
protected BodyContent |
bodyContent
The current BodyContent for this BodyTag. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface 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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
字段详细信息 |
---|
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.
方法详细信息 |
---|
doStartTag
public int doStartTag() throws JspException
- Default processing of the start tag returning EVAL_BODY_BUFFERED.
- 规范说明:
doStartTag
in interfaceTag
- 重写:
doStartTag
in classTagSupport
- 返回:
- EVAL_BODY_BUFFERED
- 抛出异常:
JspException
- if an error occurred while processing this tag- 另请参见:
Tag.doStartTag()
doEndTag
public int doEndTag() throws JspException
- Default processing of the end tag returning EVAL_PAGE.
- 规范说明:
doEndTag
in interfaceTag
- 重写:
doEndTag
in classTagSupport
- 返回:
- EVAL_PAGE
- 抛出异常:
JspException
- if an error occurred while processing this tag- 另请参见:
Tag.doEndTag()
setBodyContent
public void setBodyContent(BodyContent b)
- Prepare for evaluation of the body: stash the bodyContent away.
- 规范说明:
setBodyContent
in interfaceBodyTag
- 参数:
b
- the BodyContent- 另请参见:
doAfterBody()
,doInitBody()
,BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)
doInitBody
public void doInitBody() throws JspException
- Prepare for evaluation of the body just before the first body evaluation:
no action.
- 规范说明:
doInitBody
in interfaceBodyTag
- 抛出异常:
JspException
- if an error occurred while processing this tag- 另请参见:
setBodyContent(javax.servlet.jsp.tagext.BodyContent)
,doAfterBody()
,BodyTag.doInitBody()
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 interfaceIterationTag
- 重写:
doAfterBody
in classTagSupport
- 返回:
- SKIP_BODY
- 抛出异常:
JspException
- if an error occurred while processing this tag- 另请参见:
doInitBody()
,IterationTag.doAfterBody()
release
public void release()
- Release state.
- 规范说明:
release
in interfaceTag
- 重写:
release
in classTagSupport
- 另请参见:
Tag.release()
getBodyContent
public BodyContent getBodyContent()
- Get current bodyContent.
- 返回:
- the body content.
getPreviousOut
public JspWriter getPreviousOut()
- Get surrounding out JspWriter.
- 返回:
- the enclosing JspWriter, from the bodyContent.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.