Reporting the progress of a servlet

D

douglasjd2000

I have a servlet that needs to report its progress and stop if the user
cancels.

As a test I have tried using the outputstream of the
HttpServletResponse to flush dots to the client. It works in that I am
able to know when the user leaves the page but results in a page of
dots when the servlet runs to completion.

I've also tried setting a session attribute and having the client
check for it but I can't get the client to refresh and detect it.

What is the proper way to notify the client it needs to update?

Thanks,

Douglas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top