javax.servlet.jsp.tagext
クラス ValidationMessage

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.ValidationMessage

public class ValidationMessage
extends java.lang.Object

A validation message from a TagLibraryValidator.

A JSP container may (optionally) support a jsp:id attribute to provide higher quality validation errors. When supported, 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.


コンストラクタの概要
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
 

コンストラクタの詳細

ValidationMessage

public ValidationMessage(java.lang.String id,
                         java.lang.String message)
Create a ValidationMessage. The message String should be non-null. The value of id may be null, if the message is not specific to any XML element, or if no jsp:id attributes were passed on. If non-null, the value of id must be the value of a jsp:id attribute for the PageData passed into the validate() method.

パラメータ:
id - Either null, or the value of a jsp:id attribute.
message - A localized validation message.
メソッドの詳細

getId

public java.lang.String getId()
Get the jsp:id. Null means that there is no information available.

戻り値:
The jsp:id information.

getMessage

public java.lang.String getMessage()
Get the localized validation message.

戻り値:
A validation message


Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.