/    Sign up×
Community /Pin to ProfileBookmark

How to resumbit a popup window

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[/B] method is called and all the lines are executed. Finally it returns a new JSP as ModelAndView but it is loaded in that popup.

Help me to get rid of this ! Save my day !

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @RamkumarS spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...