aspose file tools*
The moose likes Struts and the fly likes Display results in a popup window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display results in a popup window" Watch "Display results in a popup window" New topic
Author

Display results in a popup window

Anjana Krishniah
Greenhorn

Joined: Jun 28, 2002
Posts: 3
I am using struts framework in my application.
WHen I submit the form info in my current page, I want the results to be displayed in a popup window. But my main page should remain unchanged.
How do I redirect the results to a new popup window.
Thanks in advance.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
You can do this the same way you would in normal html. Just specify a "target" attribute in your <html:link> tag.
Anjana Krishniah
Greenhorn

Joined: Jun 28, 2002
Posts: 3
I tried that. But I do not want the toolbars to be displayed in the target window. And I want to control size of the tarhet window... How do I do that?
Sorry I tried to post the code, but it kept saying some html error....
Erick Jones
Ranch Hand

Joined: Jun 17, 2002
Posts: 38
To control the client window you will need to use javascript:
<a href="javascript:window.open('','','width=50,height=100,location=no,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=0,top=0')>my link</a>
Cheers
michalina smith
Greenhorn

Joined: Jul 08, 2009
Posts: 2
If you can post the code you are using ,so that i can understand what is the proper error...
Thanks


banner printing // printing solution
 
 
subject: Display results in a popup window