I did something similar and used a refresh tag to update the screen whilst
the process was running ... it would show % completed (in text i.e. 25%
etc).

I had my database processing running in a new thread.

I had a session attribute BEEN_HERE, if that was null I start the process.  

When the process is complete and BEEN_HERE was not null I removed the
attribute and forwarded to the next page.

HTH
Shane



-----Original Message-----
From: Mark Silva [mailto:[EMAIL PROTECTED] 
Sent: Friday, 22 August 2003 12:03 p.m.
To: Struts Users Mailing List
Subject: Telling Users to Wait

Hello Struts Gurus,

I am facing an issue in my application where I need to run a database
creation script, and a database import script through the web (running
bat files on the server).  I can run these files fine, but they take a
few minutes to run...  

How can I tell the user when they have finished running?  This seems to
be a sort of push technology I am in need of, but maybe there is another
way?.  I can definitely tell them to wait for a few minutes, but how do
I actually tell them when the process is done (since there is not
another page request at this time.)

Has anyone done something similar to this?

Thanks,
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to