Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launch a new window from a servlet?

 
Paul Richards
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks
Is it possible to launch a completely new window from a servlet and if so how?
cheers Paul
 
Angela Margot
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could do it in Javascript - or with an anchor/target. This is the html that would open a link a new window
<a href="mywindow" target="_blank">Open Window</a>
There are 4 pre-defined frame targets:
_blank --> Opens page in a new blank browser window
_self ---> Opens page in the same frame where it was called from
_parent -> Opens page in parent frame of where it was called from
_top ----> Opens page on top of all frames

Does this help any??
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From above I think you could wrap it in the out.println("...") call but to my mind this seems messy and seems to lead to an unclear separation of role (unclear separation of presentation and control etc)
Just my 2p...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic