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.
The moose likes Servlets and the fly likes opening new pop up window from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 409
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.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: opening new pop up window from servlet
 
Similar Threads
opening a new window through response.sendredirect
Pop up window issue
Hide Standart Buttons in Taskbar
Reloading a parent window 1 after submit from window 2
Unable to change the location of popup window in Netscape and Opera