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.
Provisional API - subject to change
ValidationMessage
s often find their origin in validation triggered by a constraint on a property. This information is additionally kept available in this ValidationMessage
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|