You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Thielen <da...@windward.net> on 2003/08/08 16:03:25 UTC
Two forms on one page -
Hi;
I have two forms on one page. In this case, how do I handle <html:errors/> for each form? I want to put the errors from each form above that form.
thanks - dave
Re: Two forms on one page -
Posted by Michael Ruppin <mr...@yahoo.com>.
In your Form/Action you specify a property for
ActionErrors:
String property="FormOne";
ActionErrors errors = ...;
ActionError error = ...;
errors.add(property, error);
In your jsp you use the Struts <html:messages> tag
with the "property" attribute:
<html:messages property="FormOne" id="msg" >
...
</html:messages>
m
--- David Thielen <da...@windward.net> wrote:
> Hi;
>
> I have two forms on one page. In this case, how do I
> handle <html:errors/> for each form? I want to put
> the errors from each form above that form.
>
> thanks - dave
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org