org.apache.struts.taglib.template
クラス PutTag

java.lang.Object
  拡張javax.servlet.jsp.tagext.TagSupport
      拡張javax.servlet.jsp.tagext.BodyTagSupport
          拡張org.apache.struts.taglib.template.PutTag
すべての実装インタフェース:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class PutTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Tag handler for <template:put>, which puts content into request scope.

バージョン:
$Revision: 1.1.1.1 $ $Date: 2003/03/11 13:38:38 $
作成者:
David Geary
関連項目:
直列化された形式

フィールドの概要
private  java.lang.String content
          The content's URI (or text).
private  java.lang.String direct
          Determines whether content is included (false) or printed (true).
private  java.lang.String name
          The content's name.
private  java.lang.String role
          The role that the user must be in to store content.
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したフィールド
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
 
コンストラクタの概要
PutTag()
           
 
メソッドの概要
 int doEndTag()
          Process the end tag by putting content into the enclosing insert tag.
private  java.lang.String getActualContent()
          Returns the content associated with this tag.
private  javax.servlet.jsp.tagext.TagSupport getAncestor(java.lang.String className)
          Convenience method for locating ancestor tags by class name.
 java.lang.String getContent()
          Get the content attribute.
 java.lang.String getDirect()
          Returns the direct attribute associated with this tag.
 java.lang.String getName()
          Get the name attribute.
 java.lang.String getRole()
          Get the role attribute.
private  boolean hasBody()
          Returns a boolean indicating whether this tag has a body.
 void release()
          Reset member values for reuse.
 void setContent(java.lang.String content)
          Set the content's URI (if it's to be included) or text (if it's to be printed).
 void setDirect(java.lang.String direct)
          Set direct to true, and content will be printed directly, instead of included (direct == false).
 void setName(java.lang.String name)
          Set the content name.
 void setRole(java.lang.String role)
           
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したメソッド
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
クラス 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.BodyTag から継承したメソッド
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したメソッド
getParent, setPageContext, setParent
 

フィールドの詳細

name

private java.lang.String name
The content's name.


role

private java.lang.String role
The role that the user must be in to store content.


content

private java.lang.String content
The content's URI (or text).


direct

private java.lang.String direct
Determines whether content is included (false) or printed (true). Content is included (false) by default.

コンストラクタの詳細

PutTag

public PutTag()
メソッドの詳細

setName

public void setName(java.lang.String name)
Set the content name.


setRole

public void setRole(java.lang.String role)

setContent

public void setContent(java.lang.String content)
Set the content's URI (if it's to be included) or text (if it's to be printed).


setDirect

public void setDirect(java.lang.String direct)
Set direct to true, and content will be printed directly, instead of included (direct == false).


getName

public java.lang.String getName()
Get the name attribute.


getRole

public java.lang.String getRole()
Get the role attribute.


getContent

public java.lang.String getContent()
Get the content attribute.


getDirect

public java.lang.String getDirect()
Returns the direct attribute associated with this tag.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag by putting content into the enclosing insert tag.

例外:
javax.servlet.jsp.JspException - if this tag is not enclosed by <template:insert>.

release

public void release()
Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.


getActualContent

private java.lang.String getActualContent()
                                   throws javax.servlet.jsp.JspException
Returns the content associated with this tag.

例外:
javax.servlet.jsp.JspException

hasBody

private boolean hasBody()
Returns a boolean indicating whether this tag has a body.


getAncestor

private javax.servlet.jsp.tagext.TagSupport getAncestor(java.lang.String className)
                                                 throws javax.servlet.jsp.JspException
Convenience method for locating ancestor tags by class name.

パラメータ:
className - The name of the ancestor class.
例外:
javax.servlet.jsp.JspException


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2002 - Apache Software Foundation