i guess changing the theme of the form/field would do the trick. Also u can go for your own template that over-rides the default ones given for rendering the error messages on your form. u can try theme="html" on the field n form tags...

----- Original Message ----- From: "Chris Pratt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, December 11, 2006 1:58 AM
Subject: Re: validation


I assume the different validators set the property argument of
ActionErrors.add() differently.  Apparently the field validator sets it to
the field name (which allows it to be shown next to the field it's
associated with), where as the visitor validator us probably setting it to
GLOBAL_MESSAGE which gets shown at the top of the page.
 (*Chris*)

On 12/5/06, Juan Espinosa <[EMAIL PROTECTED]> wrote:

Hi i have a question about validators (struts2), i was using fileld
validator, and when i have an error (filling some filed) the error appears
on top of the input box, now i change to visitor validator and the erros
all
appear in the top of the page.
Anyone knows why is happening this, only changing the type of validator
changes the rendering of the erros ???

Thanks to all....

Regards,
        Juan

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.7/569 - Release Date: 05/12/2006
03:00 a.m.






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

Reply via email to