This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes Server Push Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Server Push" Watch "Server Push" New topic
Author

Server Push

Sivanthi Thanikesavan
Greenhorn

Joined: Feb 27, 2002
Posts: 5
How to implement Server Push using Servlets.The
Servlet should update the browser page with new data whenever an event happens at the server.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
This is not possible beacause of the request-response nature of HTPP.
(The server cannot respond without a question of the client...)
What you can do is sent a "refresh" meta tag that tells the client it should reload the page in x seconds. The newly fetched page could then show the status at that point.
Hope this helps.
Regards,
G´┐Żnther.
http://www.javacoding.net
 
Don't get me started about those stupid light bulbs.
 
subject: Server Push