wood burning stoves 2.0*
The moose likes Servlets and the fly likes opening new pop up window from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "opening new pop up window from servlet" Watch "opening new pop up window from servlet" New topic
Author

opening new pop up window from servlet

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
How can we open new pop up window from a servlet.There are no links,button etc. in the servlet.It is just doing some processing and then need to open a pop up window.
Any help.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Http fortunately disallows push. The whole web would have been very scary otherwise.

No, you can't do that without any client interaction. The client is the only who may send a new request. In the server you only can send the response or replace the request. You can't send a response without a request.

What's the functional requirement after all? You normally open new browser windows using the target attribute which is available in the HTML <form> and <a> elements. You can also use Javascript to open a new browser window using the window.open() function.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: opening new pop up window from servlet
 
Similar Threads
Pop up window issue
Hide Standart Buttons in Taskbar
opening a new window through response.sendredirect
Unable to change the location of popup window in Netscape and Opera
Reloading a parent window 1 after submit from window 2