org.apache.struts.taglib
クラス ErrorsTag

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

public final class ErrorsTag
extends javax.servlet.jsp.tagext.TagSupport

Custom tag that renders error messages if an appropriate request attribute has been created. The tag looks for a request attribute with a reserved key, and assumes that it is either a String, or a String array, containing message keys to be looked up in the application's MessageResources.

The following optional message keys will be utilized if corresponding messages exist for them in the application resources:

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

フィールドの概要
private static java.util.Locale defaultLocale
          The default locale on our server.
private  java.lang.String name
          Name of the request scope attribute containing our error messages, if any.
 
クラス 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
 
コンストラクタの概要
ErrorsTag()
           
 
メソッドの概要
 int doStartTag()
          Render the specified error messages if there are any.
 java.lang.String getName()
          Return the errors attribute name.
 void release()
          Release any acquired resources.
 void setName(java.lang.String name)
          Set the errors attribute name.
 
クラス 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 から継承したメソッド
 

フィールドの詳細

defaultLocale

private static java.util.Locale defaultLocale
The default locale on our server.


name

private java.lang.String name
Name of the request scope attribute containing our error messages, if any.

コンストラクタの詳細

ErrorsTag

public ErrorsTag()
メソッドの詳細

getName

public java.lang.String getName()
Return the errors attribute name.


setName

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

パラメータ:
name - The new errors attribute name

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the specified error messages if there are any.

例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.



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