"Transaction Processing" message from servlet

I have an application running under WAS v3.5.  There are several servlets that can run for several minutes.  I would like to send the client an HTML page basically saying his/her data is being processed and then send a confirmation page once the servlet is completed.  The way the process is built, the servlet processed the data then issues a sendRedirect to the JSP that shows the results.  However, with this sequence they don't get anything until the servlet is done.  

What can I do?
WGPuckettAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jerelwCommented:
Pass your printwriter to a Thread that routinely (every 1000 - 5000 millisenconds) checks a worker thread.

Have the worker thread set a String status as it hits key check points (inserted 10,000 records, deleted 500 keys, etc) and have the main Thread 'push' a JavaScript tag out at the regular intervals.

After the entire transaction is complete, simply push out a <JavaScript>document.location.href=""</JavaScript>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jerelwCommented:
If you're developing Java applications, this should get you going: http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20507509.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.