Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display results in a popup window

 
Anjana Krishniah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can post the code you are using ,so that i can understand what is the proper error...
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic