I¹m having trouble getting the execute and wait interceptor to work as
needed.
We have a process that in almost all cases either takes about 6 seconds to
complete or 40 seconds to complete. I added a delay parameter to my
execAndWait configuration of 10000 which I meant thought it would wait 10
seconds before displaying the wait page. I¹m finding the wait page is still
being displayed after 2-3seconds, but my logs are indicating that the
process has been completed.
Here the snippet from my struts.xml file. The results can either display a
jsp page or stream out an excel file.
<action name="viewMember" class="memberAction" method="view">
<interceptor-ref name="mmsAuthStack"/>
<interceptor-ref name="execAndWait">
<param name="delay">5000</param>
</interceptor-ref>
<result name="wait">/WEB-INF/pages/execAndWait.jsp</result>
<result
name="success">/WEB-INF/pages/listMemberView.jsp</result>
<result name="report" type="stream">
<param name="contentType">${documentContentType}</param>
<param name="contentDisposition">${documentFileName}</param>
<param name="bufferSize">1024</param>
</result>
</action>
What am I missing?
Z.