Hello all, I have a scenario related to long process in handling a
servlet request. I am using tomcat 4.1 with apache 1.3.9. In one
Use a backgorund thread to do the processing.
Then spit a page back to the user which uses a meta refresh to check the
status of the background thread. Place an animated gif on the meta refresh
page and the user will be none the wiser.
-Tim
Xiao F Chen wrote:
Tim,
Do you have a code example of this solution? I would be very interested in
setting something like this up.
Thanks.
Michael
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 10:22 AM
To: Tomcat Users List
Subject: Re: What's the right way
Here's some bad pseudo code ...
-- process.jsp --
/*
Make ThreadyThing implements Runnable, its constructor will start itself
as a background thread and do your processing. Expose a method
isDone() to be flag to let you know when its done.
*/
%
session.setAttribute(thread, new