<?xml version="1.0" encoding="UTF-8" ?>
<!--
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
-->
<!DOCTYPE struts PUBLIC
	"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
	"https://struts.apache.org/dtds/struts-6.0.dtd">

<struts>
    <package name="ui-tags" extends="velocity-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>
