<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
	"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
	"http://struts.apache.org/dtds/struts-2.5.dtd">

<struts>
    <package name="wait" extends="struts-default" namespace="/wait">

        <action name="example1">
            <result>/WEB-INF/wait/example1.jsp</result>
        </action>

        <action name="example2">
            <result>/WEB-INF/wait/example2.jsp</result>
        </action>

        <action name="example3">
            <result>/WEB-INF/wait/example3.jsp</result>
        </action>

        <action name="longProcess1" class="org.apache.struts2.showcase.wait.LongProcessAction">
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="execAndWait"/>
            <result name="wait">/WEB-INF/wait/wait.jsp</result>
            <result name="success">/WEB-INF/wait/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">/WEB-INF/wait/wait.jsp</result>
            <result name="success">/WEB-INF/wait/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">/WEB-INF/wait/wait.jsp</result>
            <result name="success">/WEB-INF/wait/complete.jsp</result>
        </action>

    </package>

</struts>
