aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: opening new pop up window from servlet