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 Struts action triggered by onUnload event Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts action triggered by onUnload event" Watch "Struts action triggered by onUnload event" New topic
Author

Struts action triggered by onUnload event

Joe Urbanek
Greenhorn

Joined: Jan 31, 2005
Posts: 15
I have an action class that triggers a pop up window displaying the results of the action. What I want to happen is when a user clicks a cancel button in the popup window I want the pop up window to transfer the control to the parent window and then trigger an action class that refreshes the parent window before the pop up closes, then I want the pop up window to close.

Any assistance is appreciated.
[ January 31, 2005: Message edited by: Joe Urbanek ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Joe, I'm moving this thread over to our HTML and JavaScript forum since your problem is not specific to Struts (the solution is the same, regardless of whether the target is a Struts action, a JSP, or a regular Servlet).

Please continue the discussion over there.

Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts action triggered by onUnload event
 
Similar Threads
Calling parent function when user closes child window
Struts action triggered by onUnload event
close pop up window and redirect to parent window in struts2
execute action when window.close()
Close Popup and refresh parent