Mark, There is also another way to accomplish your goal that doesn't use the refresh header. Basically, a servlet or JSP outputs a partial HTML page using the flush() method. The partial page contains JavaScript that typically writes out HTML tags that produce a table inside a <span> element using the document.write(). The setTimeout JS method is then used to output additional tags using the document.getElementById().innerHTML property to output an image (typically animated) to the screen.
An onLoad attribute is used in the <body> tag to call another JavaScript function that clears the timer and removes the animated image by setting the innerHTML to "". Once your task is finished, your servlet outputs the rest of the page containing the </body></html> tags and possibly some JavaScript that redirects to the completion page. I think this is the way that sites like Expedia do their progress bars without using the refresh meta tag. It saves the browser from having to poll the site and looks, in my opinion, slicker. Regards, Richard -----Original Message----- From: Mark Silva [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 5:03 PM 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]

