Reputation: 4029
I have a requirement to submit two forms to different struts actions on click of a single submit button.
Any idea how this can be achieved?
i think better submit using AJAX, so i can control the responses separately. what you say gurus ??
Upvotes: 0
Views: 268
Reputation: 30177
Use Javascript or jQuery to do that.
On the Submit button where you want to submit both the forms write.
jQuery('#form1').submit();
jQuery('#form2').submit();
Upvotes: 3