Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-30 Thread Randy Burgess
son nickel <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 29 Jan 2008 23:28:42 -0800 (PST) > To: > Subject: Re: Error messages is repeated Using Struts 2 Annotation validation > > > Thanks for your quick response, > > In my Login.jsp, >

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Johnson nickel
Thanks for your quick response, In my Login.jsp, Instead of using , I used html image tag . If i used it works fine. newton.dave wrote: > > --- Johnson nickel <[EMAIL PROTECTED]> wrote: >> > @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="username",messag

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread David Tercero
Hi, Something simillar happens to me when i started with Struts 2. I use appfuse and I realized that a message displays just above the field I'd validated, and where I included a messages.jsp (this jsp displays the action and error messages), usually at the top of the html page. To solve t

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Dave Newton
--- Johnson nickel <[EMAIL PROTECTED]> wrote: > @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="username",message="UserName > is required") For a string field you'll probably want to use the @RequiredStringValidator: a text field will return an empty string, whereas @RequiredFieldVali