Hi,
This is regarding Spring 2.5-validation. The idea is to display a single error message and highlighting (rejecting) all the fields in the form at the same time.
I'll explain this in detail,
i have a
jsp page, a controller and a validator. After the basic form validation-that is handled by the validator- the controller does the business validation. Now, if the business validation fails, the requirement is to highlight all the fields in the form by displaying a single error message on top.
when i googled it, i figured out that one can reject an entire form using -
<form:errors>
in addition to it, one can limit the form:errors tag by enclosing it in <spring:bind path="field name">
with this solution, i'm not able to highlight all the fields. i tried using the cssClass attribute for the form:errors as well.
Thank you in advance..