Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server push

 
Martin joe
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web page which lists down the items/product. If the product is updated in the background like thr other page or a new product is added to the list.

Is there a way, i can update the user page without client doing the refresh.

app is built on struts.

tnx
amj
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4503
268
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set some JavaScript to send periodic Ajax requests to the server, so you can update your list whenever the server needed to do so. As another method, you can use some comet based pushing technique like Grizzly.

Devaka
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic