And wouldn't you know it, the simplest thing that I didn't try does it. :) Thanks very much. I'm kind of shocked that this wasn't covered in any of the books/tutorials referencing the validator.
Mike -----Original Message----- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 6:00 PM To: Struts Users Mailing List Subject: Re: [struts-1.2.x] Struts Validator? On 3/29/06, Michael Laccetti <[EMAIL PROTECTED]> wrote: > I'm using the validator framework in a server-side world. User > submits form, validator is invoked, page with errors is displayed. > Now, 99% of the examples I've found out in the wild all talk about the > client-side stuff. And of the 1% that is left, they all use > <html:errors/> to display the failure message(s). I'm trying to > figure out how to interact with each error message directly, so that > they can be placed by the failing fields, etc. Anybody have some hints for me? You can use either <html:messages> or <html:errors> to do this - you just need to specify the "property" of the field.... <html:text property="foo" /> <html:errors property="foo"/> http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html http://struts.apache.org/struts-taglib/tagreference-struts-html.html Niall > Thanks, > > Mike > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]