|
Ja-Jakarta Translation |
||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.servlet.jsp.tagext.ValidationMessage
public class ValidationMessage
A validation message from either TagLibraryValidator or TagExtraInfo.
As of JSP 2.0, a JSP container must support a jsp:id attribute to provide higher quality validation errors. The container will track the JSP pages as passed to the container, and will assign to each element a unique "id", which is passed as the value of the jsp:id attribute. Each XML element in the XML view available will be extended with this attribute. The TagLibraryValidator can then use the attribute in one or more ValidationMessage objects. The container then, in turn, can use these values to provide more precise information on the location of an error.
The actual prefix of the id
attribute may or may not be
jsp
but it will always map to the namespace
http://java.sun.com/JSP/Page
. A TagLibraryValidator
implementation must rely on the uri, not the prefix, of the id
attribute.
コンストラクタの概要 | |
---|---|
ValidationMessage(java.lang.String id,
java.lang.String message)
Create a ValidationMessage. |
メソッドの概要 | |
---|---|
java.lang.String |
getId()
Get the jsp:id. |
java.lang.String |
getMessage()
Get the localized validation message. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ValidationMessage(java.lang.String id, java.lang.String message)
id
- Either null, or the value of a jsp:id attribute.message
- A localized validation message.メソッドの詳細 |
---|
public java.lang.String getId()
public java.lang.String getMessage()
|
Ja-Jakarta Translation |
||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |