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]

Reply via email to