Are the fields in this order in your validation.xml?

Niall

----- Original Message ----- 
From: "P Cotton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 04, 2004 4:32 PM
Subject: Validation errors displayed in reverse order


> Hi everyone,
>
> I am having problems with the order that validation errors are displayed
> using Struts.  I am using validation.xml and have a JSP page with a list
of
> form fields e.g.
>
> Field1 Textbox
> Field2 textbox
> Field3 textbox
>
> I can validate this fine and when forwarding back to the page, with ERROR,
I
> want to display an ordered bulleted list of all form errors.  However at
the
> moment this bulleted list is displayed in reverse order.  So if all three
> textboxes were invalid the page would look like:-
>
> Errors in page:-
>  - Field3 is not valid
>  - Field2 is not valid
>  - Field1 is not valid
>
> Field1 Textbox
> Field2 textbox
> Field3 textbox
>
> I would like to display multiple validation errors like this in the order
> that the fields appear on the page.  So my desired output would be:-
>
> Errors in page:-
>  - Field1 is not valid
>  - Field2 is not valid
>  - Field3 is not valid
>
> Field1 Textbox
> Field2 textbox
> Field3 textbox
>
> And for this to scale up whether I had 3 form fields or 30.  Please could
> you point me in the direction for how I display multiple validation errors
> in the order of fields, from first to last?
>
> Any help is greatly appreciated.
>
> Regards - Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to