<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
    <package name="wait" extends="struts-default" namespace="/wait">

        <action name="longProcess1" class="org.apache.struts2.showcase.wait.LongProcessAction">
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="execAndWait"/>
            <result name="wait">wait.jsp</result>
            <result name="success">complete.jsp</result>
        </action>

        <action name="longProcess2" class="org.apache.struts2.showcase.wait.LongProcessAction">
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="execAndWait">
                <param name="delay">2000</param>
            </interceptor-ref>
            <result name="wait">wait.jsp</result>
            <result name="success">complete.jsp</result>
        </action>

        <action name="longProcess3" class="org.apache.struts2.showcase.wait.LongProcessAction">
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="execAndWait">
                <param name="delay">3000</param>
                <param name="delaySleepInterval">1000</param>
            </interceptor-ref>
            <result name="wait">wait.jsp</result>
            <result name="success">complete.jsp</result>
        </action>

    </package>

</struts>
