|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.ValidationMessage
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.
Constructor Summary | |
ValidationMessage(java.lang.String id,
java.lang.String message)
Create a ValidationMessage. |
Method Summary | |
java.lang.String |
getId()
Get the jsp:id. |
java.lang.String |
getMessage()
Get the localized validation message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
public java.lang.String getId()
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |