Originally posted by N Deshmukh:
If we have say 100 iterations to be completed , then on completion of each iteration the status should be reported to the client, without client requesting for progress.
It may be possible, but browsers work on HTTP. HTTP requires a request and a response, and this doesn't sound like HTTP at all.
I can think of ways of making it work, but the real danger you face is that it will only work in an unstable manner on a single browser type. This is a real danger when you try to do 'windows application' type operations in a browser.
Having said that, you can have an image that displays the progress. This image is generated by a
servlet on the server, and you just keep refreshing the image. The problem here is that you won't be able to tell when the operation completes.
I still prefer having a very light page that displays the results and refreshes every few seconds. This solution
is based on HTTP.
Dave