• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

live update web page

 
Andrew Galler
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how to use Java to write a live update web page? just like those live
score updates from those sports web pages. 'coz I know servlet can only pull information
from server, so how can I push those info. from server out to the web-based client?
Thanks in advance.
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use java to keep the information updated in the server.
But you don't need to use it to update the client, you can just make the client to request the info periodically. You can get this with a HTML meta tag:
<meta http-equiv="REFRESH" content="60">
 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the best way given by Juanjo. You can also use the javascript method for refreshing the page after a certain interval of time. Any javascript based timer can be customized for this.
On an advanced stage, you can use the client pull mode. For that you will have to dig into the deep client server programming in java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic