I have embedded 3 forms into my web page using tiles framework.
all 3 forms have some information(i.e text fields) with submit button on the 3 rd form.
Now on click of the submit button on 3rd form i wanna send all data present in 3 forms by populating a formbean and directing to a particular struts action
Hw do i do this?..Coz i hv only submitted one form at a tym from a jsp page.
Is there a way to merge alll form elements to populate a single form bean before submitting the form,
You can't have three separate forms on a single page submit to the same action--it needs to either be a single form, or use hidden fields/etc. to store fields from the other forms, which would need to be filled on submit.
Amandeep Singh
Ranch Hand
Joined: Jul 17, 2008
Posts: 837
posted
0
David Newton wrote:You can't have three separate forms on a single page submit to the same action--it needs to either be a single form, or use hidden fields/etc. to store fields from the other forms, which would need to be filled on submit.
As i said in my previous posts. Make 3 forms into 1 form.
Ashwin Puthran
Greenhorn
Joined: Mar 25, 2009
Posts: 6
posted
0
Hey guys,
Thanks for your help.I have used hidden fields to store the required info as of now. But i seriously feel that there should have been some alternative to store multiple form fields to a single formbean and then submit on a single action.