This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
Joined: Jul 17, 2008
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.
Joined: Mar 25, 2009
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.