File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client Call Backs

 
Stanley Tan
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm using the struts framework to implement a registration system for a University. Is there any way to force a browser refresh when, for example, the number of slots remaining in a class changes?
Any help would be greatly appreciated. Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17625
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. HTTP can't "push", only respond to "pull" requests. About as close as you can get would be to setup a page that has a periodic refresh.
Somebody trying to use a page to sign up for courses would find that rather intrusive, however; their data input would be disrupted. If you're thinking about a public display (something like airport flight monitors), then a periodic refresh should be OK.
 
Stanley Tan
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks.
 
Jim Wang
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There has a javascript function let your load page from url ( location.replace(url) ). I think if you put a timer before it, you may get refresh function. But it's not good to force your client to do something.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic