javax.servlet.jsp.tagext
クラス BodyTagSupport

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
すべての実装インタフェース:
BodyTag, IterationTag, java.io.Serializable, 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.

関連項目:
直列化された形式

フィールドの概要
protected  BodyContent bodyContent
           
 
クラス 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
 

フィールドの詳細

bodyContent

protected BodyContent bodyContent
コンストラクタの詳細

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

定義:
インタフェース Tag 内の doStartTag
オーバーライド:
クラス TagSupport 内の doStartTag
戻り値:
EVAL_BODY_BUFFERED;
JspException
関連項目:
BodyTag

doEndTag

public int doEndTag()
             throws JspException
Default processing of the end tag returning EVAL_PAGE.

定義:
インタフェース Tag 内の doEndTag
オーバーライド:
クラス TagSupport 内の doEndTag
戻り値:
EVAL_PAGE
JspException

setBodyContent

public void setBodyContent(BodyContent b)
Prepare for evaluation of the body: stash the bodyContent away.

定義:
インタフェース BodyTag 内の setBodyContent
パラメータ:
b - the BodyContent

doInitBody

public void doInitBody()
                throws JspException
Prepare for evaluation of the body just before the first body evaluation: no action.

定義:
インタフェース BodyTag 内の doInitBody
例外:
JspException

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).

定義:
インタフェース IterationTag 内の doAfterBody
オーバーライド:
クラス TagSupport 内の doAfterBody
戻り値:
SKIP_BODY
例外:
JspException

release

public void release()
Release state.

定義:
インタフェース Tag 内の release
オーバーライド:
クラス TagSupport 内の release
関連項目:
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.


Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.