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 am having a jsp file in which there are two different forms "f1" & "f2". I am having below three conditions
1. I have to submit form f1 only
2. I have to submit form f2 only
3. I have to submit form f1 & f2 both
for 3rd condition mentioned above, i need a single button by which i can submit both the form f1 & f2.
currently i am using the below java script but its now working ane giving me null value when i am trying for both form submission.
On my page i am giving the flexibility to user that they might only enter the data for one form and keep the other for blank. then i need to update the single form only.
If user enter data in both forms then i have to update the full data.