You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kevin Wang <kn...@us.ibm.com> on 2003/11/13 03:22:47 UTC

Show validation error messages next to the corresponding input fields




Does anybody know how to do this? I know I can get ActionErrors which is an
array of messages.. but is there a way I can put the messages in place with
their input fields?

Thanks.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Show validation error messages next to the corresponding input fields

Posted by Caroline Lauferon <ca...@cgey.com>.
use "property" attribute of html:messages or html:errors. you will get only
the messages that concern your field.

Caroline

----------------------------------------------------------------------------
----
Caroline LAUFERON
 Cap Gemini Telecom Media & Networks France
 Skill Center VASN - RENNES

02 99 27 61 92
caroline.lauferon@cgey.com
----------------------------------------------------------------------------
----


----- Original Message -----
From: "Kevin Wang" <kn...@us.ibm.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, November 13, 2003 3:22 AM
Subject: Show validation error messages next to the corresponding input
fields


>
>
>
>
> Does anybody know how to do this? I know I can get ActionErrors which is
an
> array of messages.. but is there a way I can put the messages in place
with
> their input fields?
>
> Thanks.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org