Source

webwork / src / etc / example / xwork.xml

Full commit
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">

<xwork>

    <include file="webwork-default.xml"/>
    <include file="config-browser.xml"/>

    <package name="default" extends="webwork-default">

        <interceptors>
            <interceptor-stack name="defaultComponentStack">
                <interceptor-ref name="component"/>
                <interceptor-ref name="defaultStack"/>
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="defaultStack"/>

        <action name="SimpleCounter" class="com.opensymphony.webwork.example.counter.SimpleCounter">
            <result name="success" type="dispatcher">
                <param name="location">/success.jsp</param>
            </result>
            <interceptor-ref name="defaultComponentStack"/>
        </action>

        <!--
          - Velocity implementation of the SimpleCounter
          -->
        <action name="VelocityCounter" class="com.opensymphony.webwork.example.counter.SimpleCounter">
            <result name="success" type="velocity">
                <param name="location">/success.vm</param>
            </result>
            <interceptor-ref name="defaultComponentStack"/>
        </action>

        <action name="TagTest" class="com.opensymphony.webwork.example.ui.SimpleAction">
            <result name="success" type="dispatcher">
                <param name="location">/tags.jsp</param>
            </result>
        </action>

        <action name="VelocityTagTest" class="com.opensymphony.webwork.example.ui.SimpleAction">
            <result name="success" type="velocity">
                <param name="location">/tags.vm</param>
            </result>
        </action>

        <action name="CountryTest" class="com.opensymphony.webwork.example.ui.SimpleCountry">
            <result name="success" type="dispatcher">
                <param name="location">/country.jsp</param>
            </result>
        </action>

        <action name="FreemarkerTest" class="com.opensymphony.webwork.example.ui.SimpleCountry">
            <result name="success" type="freemarker">/country.ftl</result>
        </action>

        <action name="FreemarkerTest_Servlet" class="com.opensymphony.webwork.example.ui.SimpleCountry">
            <result name="success" type="dispatcher">/country.ftl</result>
        </action>

        <action name="IteratorTest" class="com.opensymphony.webwork.example.IteratorExample">

            <result name="success" type="dispatcher">
                <param name="location">/iterator.jsp</param>
            </result>
        </action>

        <action name="showForm" class="com.opensymphony.webwork.example.FormAction">
            <result name="success" type="dispatcher">
                <param name="location">/form.jsp</param>
            </result>
        </action>

        <action name="redirect" class="com.opensymphony.webwork.example.FormAction">
            <param name="foo">http://www.opensymphony.com</param>
            <result name="success" type="redirect">
                <param name="location">${foo}</param>
            </result>
        </action>

        <action name="parseLocation" class="com.opensymphony.webwork.example.FormAction">
            <param name="foo">/form.vm</param>
            <result name="success" type="velocity">
                <param name="location">${foo}</param>
            </result>
        </action>

        <action name="showVelocityForm" class="com.opensymphony.webwork.example.FormAction">
            <result name="success" type="velocity">
                <param name="location">/form.vm</param>
            </result>
        </action>

        <action name="select" class="com.opensymphony.webwork.example.SelectExampleAction">
            <result name="success" type="dispatcher">/select.jsp</result>
        </action>

        <action name="formTest" class="com.opensymphony.webwork.example.FormAction" method="processForm">
            <result name="success" type="dispatcher">
                <param name="location">/form.jsp</param>
            </result>
            <result name="invalid.token" type="dispatcher">
                <param name="location">/form.jsp</param>
            </result>

            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="token"/>
        </action>

        <action name="formTest2" class="com.opensymphony.webwork.example.FormAction" method="processForm">
            <result name="success" type="dispatcher">
                <param name="location">/form2-success.jsp</param>
            </result>

            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="token-session"/>
        </action>

        <action name="exception" class="com.opensymphony.webwork.example.ExceptionAction">
        </action>

        <action name="basicValidation" class="com.opensymphony.webwork.example.ValidatedAction">
            <interceptor-ref name="validationWorkflowStack"/>

            <result name="success" type="velocity">valid.vm</result>
            <result name="input" type="velocity">validationForm.vm</result>
            <result name="error" type="velocity">validationForm.vm</result>
        </action>

        <action name="visitorValidation" class="com.opensymphony.webwork.example.ValidatedAction">
            <interceptor-ref name="validationWorkflowStack"/>
            <param name="validationAction">visitorValidation.action</param>
            <result name="success" type="velocity">valid.vm</result>
            <result name="input" type="velocity">validationForm.vm</result>
            <result name="error" type="velocity">validationForm.vm</result>
        </action>

        <action name="expressionValidation" class="com.opensymphony.webwork.example.ValidatedAction">
            <interceptor-ref name="validationWorkflowStack"/>
            <param name="validationAction">expressionValidation.action</param>
            <param name="bean.number2">15</param>
            <result name="success" type="velocity">valid.vm</result>
            <result name="input" type="velocity">validationForm.vm</result>
            <result name="error" type="velocity">validationForm.vm</result>
        </action>

        <action name="javascriptValidation" class="com.opensymphony.webwork.example.JavascriptValidationAction">
            <interceptor-ref name="validationWorkflowStack"/>
            <result name="success" type="redirect">http://www.opensymphony.com</result>
            <result name="input">javascript-input.jsp</result>
        </action>

        <!-- JasperReport Basic Test Actions -->
        <action name="jasperTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>

        <action name="jasperPDFTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
                <param name="format">PDF</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>

        <action name="jasperCSVTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
                <param name="format">CSV</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>
        <action name="jasperHTMLTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
                <param name="format">HTML</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>
        <action name="jasperXLSTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
                <param name="format">XLS</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>
        <action name="jasperXMLTest" class="com.opensymphony.webwork.example.jasperreports.OrderListAction">
            <result name="success" type="jasper">
                <param name="location">orderList.jasper</param>
                <param name="dataSource">orders</param>
                <param name="format">XML</param>
            </result>
            <interceptor-ref name="defaultStack"/>
        </action>

        <action name="Test" class="com.opensymphony.webwork.example.Test">
        </action>

        <action name="TabbedPaneTest" class="com.opensymphony.webwork.example.TabbedPaneTest">
            <result name="success">tabbedpanetest.jsp</result>
        </action>

        <action name="indexedProperties" class="com.opensymphony.webwork.example.IndexedPropertyAction">
            <result name="success">/indexedProperties.jsp</result>
        </action>

    </package>

    <include file="xslt.xml"/>

    <include file="month.xml"/>

    <include file="i18n.xml"/>

    <include file="file-upload.xml"/>

</xwork>