org.apache.struts.taglib.tiles
クラス GetAttributeTag

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

public class GetAttributeTag
extends javax.servlet.jsp.tagext.TagSupport
implements ComponentConstants

Retrieve the value of the specified component/template attribute property, and render it to the current JspWriter as a String. The usual toString() conversion is applied on the found value.

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

フィールドの概要
private  java.lang.String attribute
           
private  boolean isErrorIgnored
          Do we ignore error if attribute is not found.
private  java.lang.String role
          Role attribute
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
id, pageContext
 
インタフェース org.apache.struts.taglib.tiles.ComponentConstants から継承したフィールド
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
GetAttributeTag()
          Default constructor.
 
メソッドの概要
 int doEndTag()
          Close tag.
 java.lang.String getAttribute()
          Get attribute.
 boolean getIgnore()
          Get ignore flag.
 java.lang.String getName()
          Get Name.
 java.lang.String getRole()
          Get role.
 void release()
          Release all allocated resources.
 void setAttribute(java.lang.String attribute)
          Set attribute.
 void setIgnore(boolean ignore)
          Set ignoring flag when attribute is not found.
 void setName(java.lang.String value)
          Set Name.
 void setRole(java.lang.String role)
          Set role.
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, doStartTag, 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.IterationTag から継承したメソッド
 

フィールドの詳細

attribute

private java.lang.String attribute

role

private java.lang.String role
Role attribute


isErrorIgnored

private boolean isErrorIgnored
Do we ignore error if attribute is not found. Default value is false, which will throw an exception.

コンストラクタの詳細

GetAttributeTag

public GetAttributeTag()
Default constructor.

メソッドの詳細

release

public void release()
Release all allocated resources.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の release

setAttribute

public void setAttribute(java.lang.String attribute)
Set attribute.

パラメータ:
attribute - Attribute.

getAttribute

public java.lang.String getAttribute()
Get attribute.

戻り値:
Attribute.

setName

public void setName(java.lang.String value)
Set Name. Same as setAttribute().

パラメータ:
value - Attribute.

getName

public java.lang.String getName()
Get Name. Set as getAttribute().

戻り値:
Attribute.

setIgnore

public void setIgnore(boolean ignore)
Set ignoring flag when attribute is not found.

パラメータ:
ignore - default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently

getIgnore

public boolean getIgnore()
Get ignore flag.

戻り値:
false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently

setRole

public void setRole(java.lang.String role)
Set role.

パラメータ:
role - The role the user must be in to store content.

getRole

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

戻り値:
Role.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Close tag.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doEndTag
例外:
javax.servlet.jsp.JspException - On error processing tag.


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