wood burning stoves 2.0
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Redirecting from popup window" Watch "Redirecting from popup window" New topic

Redirecting from popup window

Vijay Gopal Varadarajan

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..

I agree. Here's the link: http://aspose.com/file-tools
subject: Redirecting from popup window
It's not a secret anymore!