0 down vote favorite
share [fb] share [tw]
Case:
I have two forms
1> Own Customized Form say
form1.
2> Form rendering from third party
java script call say
form2.
Previously there was only one form
(no third party form) with same fields.
Thus I was submitting it using single submit button.
Lets say I was calling
Action1 for my old form.
The third party form has own submit button and it post values (Not all. Only Third Party
values ) to own controller and returns response .
I don't want to ask user to submit twice on same page.
I want to submit both forms on old submit button and hide third party submit button.
I can change the response URL (where to land to get third party form submit response ).
I am thinking to hide third party submit button with css and call click/submit that when I
click old submit button using javascript.
Lets set response landing page for third party to Action1.
But if I land on old action ie Action1 I cant able to get old customized form element?
I am stuck in this scenario.
Can you have any better solution to this?
[Using
struts framework and
jsp for rendering form.]