Hi Friends,
I opened a popup and loading JSP file in that. That popup has a spring MVC commandName form instance. Now user has modified some form fields and clicks OK button in that popup.
I have to resubmit the popup to a different action URL which redirects another ModelAndView JSP which should be reloaded again in the same popup.
The form is getting submitted to a URL and all the business flows are executed in a JAVA file. But the problem is, popup is not reloading or redircting to the new ModelAndView (JSP). Nothing happens in the popup. I am not getting any exceptions or script errors also.
Here is my code to open the popup :
mywin = window.open(url,”,str);
Here is my code to submit the popup :
document.forms[0].action = ‘test.do?action=reloadPopupWindow’
document.forms[0].method = “POST”;
document.forms[0].submit();
I am using spring MultiActionController. The [B]reloadPopupWindow
Help me to get rid of this ! Save my day !