This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
posted
0
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.