alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (struts-wait.xml)

This example Struts source code file (struts-wait.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

apache, apache, configuration, doctype, doctype, foundation//dtd, foundation//dtd, public, software, software, struts

The Struts struts-wait.xml source code

<!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 name="success">complete.jsp
        </action>

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

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

    </package>

</struts>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts struts-wait.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.