You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Karthik Manimaran <mk...@gmail.com> on 2006/02/01 23:53:56 UTC

Validation - how to get form field names with validation errors

Hi,

I am using the following to display all the validation errors in a form.

    <ul>
     <html:messages id="error">
     <li><bean:write name="error"/></li>
     </html:messages>
    </ul>

How can I get the form field names that correspond to each of the errors
reported or atleast a list of all form fields that have an error.

Thanks and regards,
Karthik.