File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 3057
    
  38

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server push