my dog learned polymorphism*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Server push" Watch "Server push" New topic
Author

Server push

Martin joe
Greenhorn

Joined: Sep 20, 2007
Posts: 9
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3216
    
  49

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
 
subject: Server push