You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arnold Cano <ar...@virtualplus.com> on 2001/02/22 10:02:24 UTC

redirect question

i have run into a bit of a problem.  my action class calls beans that
'could' take a few seconds at least to process and return.  is there a way
in struts to have a redirect or forward to a page that says 'processing...'
while the beans are busy and then forward correctly once they are done?  has
anyone else run into a similar problem?

-arnold



RE: redirect question

Posted by Robert Taylor <rt...@mulework.com>.
In your action class that calls the bean to do the work, you could pass a
reference to the HttpSession. The work bean would then notify the session
when it is done working. Then have the page that displays the
"processing..." message auto-refresh itself, calling an action class that
checks the HttpSession to see if the process has finished. That is, use the
HttpSession as a message queue to facilitate communication between the work
bean and the action class that is diplaying the processing message page.

HTH

> -----Original Message-----
> From: Anand Raman [mailto:anand.raman@mymailbag.com]
> Sent: Saturday, February 24, 2001 6:52 AM
> To: struts-user@jakarta.apache.org
> Subject: Re: redirect question
>
>
> I guess this can be typically achieved thru javascript.. Though not very
> sure u can try out the layers tutorial on http://developer.netscape.com/
> for more information..
>
> Hope this helps
> Anand
> On Thu, Feb 22, 2001 at 03:02:24AM -0600, Arnold Cano wrote:
> >i have run into a bit of a problem.  my action class calls beans that
> >'could' take a few seconds at least to process and return.  is
> there a way
> >in struts to have a redirect or forward to a page that says
> 'processing...'
> >while the beans are busy and then forward correctly once they
> are done?  has
> >anyone else run into a similar problem?
> >
> >-arnold
> >
>
>


Re: redirect question

Posted by Anand Raman <an...@mymailbag.com>.
I guess this can be typically achieved thru javascript.. Though not very
sure u can try out the layers tutorial on http://developer.netscape.com/
for more information..

Hope this helps
Anand
On Thu, Feb 22, 2001 at 03:02:24AM -0600, Arnold Cano wrote:
>i have run into a bit of a problem.  my action class calls beans that
>'could' take a few seconds at least to process and return.  is there a way
>in struts to have a redirect or forward to a page that says 'processing...'
>while the beans are busy and then forward correctly once they are done?  has
>anyone else run into a similar problem?
>
>-arnold
>