If you want some sort of progress bar though, something that actually has knowledge of what's going on on the server, what you'll need to do is kick off a thread in your Action, and store some reference to it persistently (i.e., session or a database, etc.). Then, you'll have to have a page on the browser with something like a meta-refresh that calls some special Action that can check the status of that thread, maybe get some sort of percent complete or something like that to display back to the browser.
Obviously, if faking it is good enough, as it usually is in these cases, that's by far the better choice.
Frank
From: "Marcelo Epstein" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Action messages. Date: Thu, 3 Jun 2004 11:46:44 -0300
Hi,
I have a Action that takes 10s to execute. Is there any way to display messages in the browser during execution?
Thx, Marcelo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]