struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Epstein" <marc...@epstein.com.br>
Subject Re: Action messages.
Date Thu, 03 Jun 2004 16:55:11 GMT
Thanks Frank,

    Do you have any sample code of using <SPAN> ?
    I think this is also good to avoid 2 submit´s click. Am I right?



----- Original Message ----- 
From: "Frank Zammetti" <fzammett@hotmail.com>
To: <user@struts.apache.org>
Sent: Thursday, June 03, 2004 11:57 AM
Subject: RE: Action messages.


> You can "fake it" and do this... have a hidden <span> in your page that,
> just before you submit your form, you display.  You will probably also
want
> to wrap everything else in your page in a <span> and hide it at the same
> time.  I say this is "faking it" because the browser won't have any idea
> what's going on on the server, which might be OK.
>
> 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" <marcelo@epstein.com.br>
> >Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
> >To: "Struts Users Mailing List" <user@struts.apache.org>
> >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: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
>
> _________________________________________________________________
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message