This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Redirecting from popup window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Redirecting from popup window" Watch "Redirecting from popup window" New topic
Author

Redirecting from popup window

Vijay Gopal Varadarajan
Greenhorn

Joined: Sep 12, 2005
Posts: 5
Hi Ranchers,

I ve a scenario here.

Im using struts 1.2 in my app. When i give search in the parent window, it will display the details in the display: table. Using a decorator im redirecting the control to open a new popup window. In the popup window, (after modifying the details)when i click save button, it has to do the following :
1.Call the save() action method in the popup windows action class.
2.Close the popup window.
3.Save the modification and shd display the message "saved successfully" in the parent window.
4.In the parent window it has to call the search() of parent window's action class automatically.

I used actionRedirect in the popup windows action class save().

ActionForward actionForward = mapping.findForward(Constants.REDIRECTSUCCESS);
actionRedirect = new ActionForward(actionForward.getName(),actionForward.getPath()+"?method=search",true);
return actionRedirect;

If anybody could find asolution it will be helpful for me..

Thanks
vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirecting from popup window
 
Similar Threads
Preventing multiple posts...with popup windows in the mix
dynamic DIV tag
Popup form, parent form
popup window changed to internal iframe. problem using window.opener
Popup Question