*
The moose likes Struts and the fly likes How to call a popup using html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to call a popup using html:link" Watch "How to call a popup using html:link" New topic
Author

How to call a popup using html:link

raghuveer mandal
Greenhorn

Joined: Nov 13, 2004
Posts: 9
Hi All,
I have one problem, I have one scenario where i have <html:file> which must be uploaded and processed. Once the processing is done i need to show the result on a pop up screen. On click of the popup i must show the file upload screen.In this case i need to submit the form as i have to pass the formFile object to the action class and at the same time open a popup on click of <html:link>. Can any one help me to solve this issue. I will be thankful.

Thanks in advance
Raghuveer Mandal
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
One possible way to do this would be to set some sort of flag variable in the session to indicate that the file has been uploaded successfully. Have your upload Processing Action set the flag and whatever data you want displayed in the session and forward back to the upload page. In the on load event of the <body> tag, if the update flag is present, use the JavaScript window.open() method to open the popup window and display the result. When the user closes the popup window, the upload page is still displayed.
[ April 17, 2006: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to call a popup using html:link
 
Similar Threads
In struts Can't display dynamic content using "include"?
passing value to and from popup window
mulitple parameter
passing value to and from popup window
struts and javascript popup window