Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reload pages for all users.

 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a separate class which is used as my server class. WHat it does is it sends messesges to all users . In servlet i recieve teh message from that class. Now whenever a new user login to my site it has a list of all people there that he can view. Now how do i refresh the list for all the other people who are already loged in and need to see a new person who just loged in ? Is there a nice eligant way of doing this ? I was thinking of using Observer pattern because it can notify when teh change occurs but in case of servlet how can i do that ? Thanks.
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You can not force a refresh to reload on the client. There must be a request from the client side.
You can do a periodic refresh with <meta> or the best solution is probably to put the view of the list in an applet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic