File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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