aspose 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
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: 2885
    
  13

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
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server push
 
Similar Threads
Dynamically displaying checkboxes
How to check this rendered condition
Passing values b/w beans through navigation
Opening a JSP from javascript
Data Population on PageLoad