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

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

public class GetTag
extends javax.servlet.jsp.tagext.TagSupport

This is the tag handler for <template:get>, which gets content from the request scope and either includes the content or prints it, depending upon the value of the content's direct attribute.

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

フィールドの概要
private  boolean flush
          Should we flush before including this text?
private  java.lang.String name
          The name of the content that this tag includes (or prints).
private  java.lang.String role
          The role that the user must be in to retrieve content.
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
id, pageContext
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
GetTag()
           
 
メソッドの概要
 int doStartTag()
          Print content named by setName() or include it, depending on the content's direct attribute.
 boolean getFlush()
          Get the flush-before-include attribute.
 java.lang.String getName()
          Get the name attribute.
 java.lang.String getRole()
          Get the role attribute.
 void release()
          Reset member values for reuse.
private  void saveException(java.lang.Throwable exception)
          Save the specified exception in request scope if there is not already one present.
 void setFlush(boolean flush)
          Set the flush-before-include property
 void setName(java.lang.String name)
          Set the name attribute
 void setRole(java.lang.String role)
          Set the role attribute
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, doEndTag, 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 から継承したメソッド
 

フィールドの詳細

flush

private boolean flush
Should we flush before including this text?


name

private java.lang.String name
The name of the content that this tag includes (or prints).


role

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

コンストラクタの詳細

GetTag

public GetTag()
メソッドの詳細

setFlush

public void setFlush(boolean flush)
Set the flush-before-include property

パラメータ:
flush - The new flush property

setName

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

パラメータ:
name - The name of the content to get.

setRole

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


getFlush

public boolean getFlush()
Get the flush-before-include attribute.


getName

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


getRole

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


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Print content named by setName() or include it, depending on the content's direct attribute.

例外:
javax.servlet.jsp.JspException

release

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


saveException

private void saveException(java.lang.Throwable exception)
Save the specified exception in request scope if there is not already one present.

パラメータ:
exception - Exception to be conditionally saved


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