File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Updating Report Pages. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Updating Report Pages." Watch "Updating Report Pages." New topic

Updating Report Pages.

Ramneek Handa
Ranch Hand

Joined: Nov 10, 2000
Posts: 44
Hi folks,
There is one problem I want to discuss with you.
I my application, if a client is looking at some report and meanwhile some updation or insertion or deletion happens in the table related to that report those changes should get fleshed/refreshed to the client immediately.
I will be glad if you can forword your suggestions.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13024
Since a server can't initiate transmission, you will have to have some process on the browser that polls the server to see if a change in the data has occurred. If a change has occurred the process must initiate a request to regenerate the HTML.
There are lots of possibilities for this process - for example, you might have an applet in an invisible frame.

author of:
wood burning stoves
subject: Updating Report Pages.
It's not a secret anymore!