File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Server push

Martin joe

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.

Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3927

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.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
I agree. Here's the link:
subject: Server push
It's not a secret anymore!