Re: Display message beside input field using struts validator

2004-11-08 Thread Niall Pemberton
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 08, 2004 10:08 PM Subject: Re: Display message beside input field using struts validator > At 3:49 PM -0600 11/8/04, Struts User wrote: > >Hello, > > > >Currently, I am using struts

Re: Display message beside input field using struts validator

2004-11-08 Thread Erik Weber
Thanks. Erik Joe Germuska wrote: At 5:10 PM -0500 11/8/04, Erik Weber wrote: Here is a way to do it that works with 1.1: Username: Omitting the "name" attribute in this would have the same effect as including it - it's the default. It's suggested that if you are storing messages in your ac

Re: Display message beside input field using struts validator

2004-11-08 Thread Joe Germuska
At 5:10 PM -0500 11/8/04, Erik Weber wrote: Here is a way to do it that works with 1.1: Username: Omitting the "name" attribute in this would have the same effect as including it - it's the default. It's suggested that if you are storing messages in your actions using "saveErrors" or "saveMe

Re: Display message beside input field using struts validator

2004-11-08 Thread Struts User
Thanks, Joe and Erik. I got it to work using the following code: Struts validator returns error object instead of message object. Thanks! Lee On Mon, 8 Nov 2004 16:08:26 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 3:49 PM -0600 11/8/04, Struts User wrote: > > > >Hello, > > > >

Re: Display message beside input field using struts validator

2004-11-08 Thread Joe Germuska
At 3:49 PM -0600 11/8/04, Struts User wrote: Hello, Currently, I am using struts validator to validate the fields in my ActionForm. Before I updated to struts 1.2.4, I could add an error this way - errors.add( "username", new ActionError("error.username.required")); If the validation failed, the

Re: Display message beside input field using struts validator

2004-11-08 Thread Erik Weber
Here is a way to do it that works with 1.1: Username: Not sure if that tag has changed for 1.2. Erik Struts User wrote: Hello, Currently, I am using struts validator to validate the fields in my ActionForm. Before I updated to struts 1.2.4, I could add an error this way - errors.add( "userna

Display message beside input field using struts validator

2004-11-08 Thread Struts User
Hello, Currently, I am using struts validator to validate the fields in my ActionForm. Before I updated to struts 1.2.4, I could add an error this way - errors.add( "username", new ActionError("error.username.required")); If the validation failed, the error message for username will be displaye