Ja-Jakarta
Translation

javax.servlet.jsp.tagext
クラス BodyTagSupport

java.lang.Object
  上位を拡張 javax.servlet.jsp.tagext.TagSupport
      上位を拡張 javax.servlet.jsp.tagext.BodyTagSupport
すべての実装されたインタフェース:
java.io.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.

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

フィールドの概要
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.
 javax.servlet.jsp.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
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 javax.servlet.jsp.JspException
Default processing of the start tag returning EVAL_BODY_BUFFERED.

定義:
インタフェース Tag 内の doStartTag
オーバーライド:
クラス TagSupport 内の doStartTag
戻り値:
EVAL_BODY_BUFFERED
例外:
javax.servlet.jsp.JspException - if an error occurred while processing this tag
関連項目:
Tag.doStartTag()

doEndTag

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

定義:
インタフェース Tag 内の doEndTag
オーバーライド:
クラス TagSupport 内の doEndTag
戻り値:
EVAL_PAGE
例外:
javax.servlet.jsp.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.

定義:
インタフェース BodyTag 内の setBodyContent
パラメータ:
b - the BodyContent
関連項目:
doAfterBody(), doInitBody(), BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)

doInitBody

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

定義:
インタフェース BodyTag 内の doInitBody
例外:
javax.servlet.jsp.JspException - if an error occurred while processing this tag
関連項目:
setBodyContent(javax.servlet.jsp.tagext.BodyContent), doAfterBody(), BodyTag.doInitBody()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.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
例外:
javax.servlet.jsp.JspException - if an error occurred while processing this tag
関連項目:
doInitBody(), IterationTag.doAfterBody()

release

public void release()
Release state.

定義:
インタフェース Tag 内の release
オーバーライド:
クラス TagSupport 内の release
関連項目:
Tag.release()

getBodyContent

public BodyContent getBodyContent()
Get current bodyContent.

戻り値:
the body content.

getPreviousOut

public javax.servlet.jsp.JspWriter getPreviousOut()
Get surrounding out JspWriter.

戻り値:
the enclosing JspWriter, from the bodyContent.

Ja-Jakarta
Translation

Copyright © 2000- The Apache Software Foundation. All rights Reserved.