You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andrew Close <ac...@gmail.com> on 2004/07/09 17:12:02 UTC

Multiple forms and actions

Hi,

when you have multiple forms on a JSP and one of those forms is
submitted, do the values on the other form get sent to the action
class that was submitted to?
i have two forms, two actions on one JSP.  when i trigger the event to
submit one form, will that receiving action also get the values of the
other form?  and if not, how can i do this?

thanks,
andy

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


Re: Multiple forms and actions

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Andrew Close" <ac...@gmail.com>
> when you have multiple forms on a JSP and one of those forms is
> submitted, do the values on the other form get sent to the action
> class that was submitted to?

Not with plain old HTML... probably would require JavaScript.

I can see having two forms on a single page and giving the user a choice of
which one to submit.  But if you want all the elements from both forms to be
submitted, you might as well put them all in one form and make your life
easier.

-- 
Wendy Smoak


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


Re: Multiple forms and actions

Posted by James Mitchell <jm...@apache.org>.
By reading up on this:

 http://www.w3schools.com/html/html_forms.asp



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message ----- 
From: "Andrew Close" <ac...@gmail.com>
To: <us...@struts.apache.org>
Sent: Friday, July 09, 2004 11:12 AM
Subject: Multiple forms and actions


> Hi,
> 
> when you have multiple forms on a JSP and one of those forms is
> submitted, do the values on the other form get sent to the action
> class that was submitted to?
> i have two forms, two actions on one JSP.  when i trigger the event to
> submit one form, will that receiving action also get the values of the
> other form?  and if not, how can i do this?
> 
> thanks,
> andy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 



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