<?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="ui-tags" extends="struts-default" namespace="/tags/ui">
        <action name="example" class="org.apache.struts2.showcase.UITagExample">
            <result>/WEB-INF/tags/ui/example.jsp</result>
            <result name="input">/WEB-INF/tags/ui/example.jsp</result>
        </action>
        <action name="exampleSubmit" class="org.apache.struts2.showcase.UITagExample" method="doSubmit">
        	<result>/WEB-INF/tags/ui/exampleSubmited.jsp</result>
        	<result name="input">/WEB-INF/tags/ui/example.jsp</result>
        </action>
        <action name="exampleVelocity" class="org.apache.struts2.showcase.UITagExample">
            <result type="velocity">/WEB-INF/tags/ui/example.vm</result>
            <result name="input" type="velocity">/WEB-INF/tags/ui/example.vm</result>
        </action>
        <action name="exampleSubmitVelocity" class="org.apache.struts2.showcase.UITagExample" method="doSubmit">
        	<result type="velocity">/WEB-INF/tags/ui/exampleSubmited.vm</result>
        	<result name="input" type="velocity">/WEB-INF/tags/ui/example.vm</result>
        </action>

        <action name="lotsOfOptiontransferselect" class="org.apache.struts2.showcase.LotsOfOptiontransferselectAction" method="input">
        	<result>/WEB-INF/tags/ui/lotsOfOptiontransferselect.jsp</result>
        </action>
        <action name="lotsOfOptiontransferselectSubmit" class="org.apache.struts2.showcase.LotsOfOptiontransferselectAction" method="submit">
        	<result name="input">/WEB-INF/tags/ui/lotsOfOptiontransferselect.jsp</result>
        	<result>/WEB-INF/tags/ui/lotsOfOptiontransferselectSubmit.jsp</result>
        </action>

         <action name="moreSelects" class="org.apache.struts2.showcase.MoreSelectsAction" method="input">
        	<result>/WEB-INF/tags/ui/moreSelects.jsp</result>
        </action>
        <action name="moreSelectsSubmit" class="org.apache.struts2.showcase.MoreSelectsAction" method="submit">
        	<result name="input">/WEB-INF/tags/ui/moreSelects.jsp</result>
        	<result>/WEB-INF/tags/ui/moreSelectsSubmit.jsp</result>
        </action>

        <!--  START SNIPPET: treeExampleDynamicXWorkXml -->

        <action name="showDynamicTreeAction" class="org.apache.struts2.showcase.ShowDynamicTreeAction">
        	<result>/WEB-INF/tags/ui/treeExampleDynamic.jsp</result>
        </action>

        <!--  END SNIPPET: treeExampleDynamicXWorkXml -->

        <action name="treeExampleStatic">
            <result>/WEB-INF/tags/ui/treeExampleStatic.jsp</result>
        </action>

        <action name="showDynamicAjaxTreeAction">
            <result>/WEB-INF/tags/ui/treeExampleAjaxDynamic.jsp</result>
        </action>

        <action name="componentTagExample">
        	<result>/WEB-INF/tags/ui/componentTagExample.jsp</result>
        </action>

        <action name="showComponentTagExampleCode">
        	<result type="plainText">/WEB-INF/tags/ui/componentTagExample.jsp</result>
        </action>

        <action name="actionTagExample">
            <result>/WEB-INF/tags/ui/actionTagExampleCalled.jsp</result>
            <result name="input">/WEB-INF/tags/ui/actionTagExampleCalling.jsp</result>
        </action>

        <action name="datepicker">
            <result>/WEB-INF/tags/ui/datepicker/index.jsp</result>
        </action>

        <action name="timepicker">
            <result>/WEB-INF/tags/ui/timepicker/index.jsp</result>
        </action>
	</package>

	<!--  START SNIPPET: treeExampleXWorkXml -->

	<package name="ui-tags-ajax" namespace="/tags/ui/ajax" extends="struts-default">
        <!-- Actions dealing with Tree Example  -->
        <action name="staticTreeSelectAction">
        	<result>/WEB-INF/tags/ui/staticTreeSelect.jsp</result>
        </action>
        <action name="dynamicTreeSelectAction" class="org.apache.struts2.showcase.DynamicTreeSelectAction">
        	<result>/WEB-INF/tags/ui/dynamicTreeSelect.jsp</result>
        </action>
    </package>

    <!--  END SNIPPET: treeExampleXWorkXml -->
</struts>
