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

Struts example source code file (struts-tags-ui.xml)

This example Struts source code file (struts-tags-ui.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

actions, apache, apache, configuration, doctype, end, end, public, snippet, snippet, start, start, tree, utf-8

The Struts struts-tags-ui.xml source code

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
    <package name="ui-tags" extends="struts-default" namespace="/tags/ui">
        <action name="example" class="org.apache.struts2.showcase.UITagExample">
            <result>example.jsp
            <result name="input">example.jsp
        </action>
        <action name="exampleSubmit" class="org.apache.struts2.showcase.UITagExample" method="doSubmit">
        	<result>exampleSubmited.jsp
        	<result name="input">example.jsp
        </action>
        <action name="exampleVelocity" class="org.apache.struts2.showcase.UITagExample">
            <result type="velocity">example.vm
            <result name="input" type="velocity">example.vm
        </action>
        <action name="exampleSubmitVelocity" class="org.apache.struts2.showcase.UITagExample" method="doSubmit">
        	<result type="velocity">exampleSubmited.vm
        	<result name="input" type="velocity">example.vm
        </action>

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

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

        <!--  START SNIPPET: treeExampleDynamicXWorkXml -->

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

        <!--  END SNIPPET: treeExampleDynamicXWorkXml -->

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

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

        <action name="actionTagExample">
            <result>/tags/ui/actionTagExampleCalled.jsp
            <result name="input">/tags/ui/actionTagExampleCalling.jsp
        </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>/tags/ui/staticTreeSelect.jsp
        </action>
        <action name="dynamicTreeSelectAction" class="org.apache.struts2.showcase.DynamicTreeSelectAction">
        	<result>/tags/ui/dynamicTreeSelect.jsp
        </action>
    </package>

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

Other Struts examples (source code examples)

Here is a short list of links related to this Struts struts-tags-ui.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.