This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display results in a popup window" Watch "Display results in a popup window" New topic

Display results in a popup window

Anjana Krishniah

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

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

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="'','','width=50,height=100,location=no,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=0,top=0')>my link</a>
michalina smith

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

banner printing // printing solution
I agree. Here's the link:
subject: Display results in a popup window