Thanks for the replay.

I got this working if I use a freemaker template as my result. 

The content of the file is below.
<html>
 <head>
 <meta http-equiv="refresh" content="5;url=<@s.url includeParams="none"/>"/>
 </head>
  <body>
        Please wait while we process your request...
       <p/>

        This page will reload automatically and display your request when it
is completed.
    </body>
</html>

This is the thing which is making my action work as I wanted.The below meta
tag.
 
<meta http-equiv="refresh" content="5;url=<@s.url includeParams="none"/>"/>

If I remove this line it's not working. It's executing the action at the
Backend but not forwarding to the "success" result after the execting the
action.Can any one tell me what this line is doing?

Thankyou,
Ravindra.

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 5:59 PM
To: Struts Users Mailing List
Subject: RE: ExecuteAndWaitInterceptor problem


depends on how quickly your background process completes
there is a deplaySleepInterval parameter available to check progress e.g.
This example will wait 1 second (1000 millis) before the wait page is shown
to the user.
And at every 50 millis this interceptor will check if the background process
is done, if so
it will return before the 1 second has elapsed, and the user isn't shown a
wait page. <interceptor-ref name="execAndWait">
        <param name="delay">1000<param>
        <param name="delaySleepInterval">50<param>

some other parameters are beforeInvocation() to assign resources and
afterInvocation() to release costly resources
Info available at
http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html

anyone?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 


> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: ExecuteAndWaitInterceptor problem
> Date: Tue, 16 Sep 2008 13:45:47 +0530
> 
>  
> 
>  
> 
> Hi all,
> 
>  
> 
> I am trying to use ExecuteAndWaitInterceptor to show a page while my
action
> processes the request.
> 
> The below is my action configuration.After executing the execute method
> successfully I am forwarding
> 
> "Success" result which is another action which forward the request to
> another jsp.
> 
>  
> 
> <action name="myaction" class="com.some.some.action.MyAction">
> 
>         <interceptor-ref name="deafultAccountStack"/>
> 
>         <interceptor-ref name="execAndWait"/>
> 
>         <result name="back" type="chain">back_input</result>
> 
>         <result name="input">inputInfo.jsp</result>
> 
>         <result name="success" type="chain">summaryPage</result>
> 
>         <result name="wait">waiting.jsp</result>
> 
> </action>
> 
>  
> 
> What extra stuff I have to do to go to the success action.
> 
>  
> 
> Thank you,
> 
> Ravindra.
> 

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows
Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/



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

Reply via email to