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

Struts example source code file (xwork-test-global-result-inheritence.xml)

This example Struts source code file (xwork-test-global-result-inheritence.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

doctype, doctype, group//xwork, group//xwork, opensymphony, opensymphony, public, utf-8, utf-8

The Struts xwork-test-global-result-inheritence.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xwork PUBLIC
    "-//OpenSymphony Group//XWork 1.1.1//EN"
    "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd"
 >

<xwork>
	<include file="xwork-test-beans.xml" />
	<package name="parent" namespace="/base">
		<result-types>
			<result-type name="mockResult" class="com.opensymphony.xwork2.mock.MockResult" />
		</result-types>
		<global-results>
			<result name="mockResult1" type="mockResult">
				<param name="identity">p1
			</result>
			<result name="mockResult2" type="mockResult">
				<param name="identity">p2
			</result>
		</global-results>
		<action name="parentAction" />
	</package>


	<package name="another" namespace="/base">
		<result-types>
			<result-type name="anotherMockResult" class="com.opensymphony.xwork2.mock.MockResult" />
		</result-types>
		<global-results>
			<result name="mockResult1" type="anotherMockResult">
				<param name="identity">a1
			</result>
			<result name="mockResult2" type="anotherMockResult">
				<param name="identity">a2
			</result>
		</global-results>
		<action name="anotherAction" />
	</package>

	<package name="child" extends="parent" namespace="/base">
		<global-results>
			<result name="mockResult1" type="mockResult">
				<param name="identity">c1
			</result>
		</global-results>
		<action name="childAction" />
	</package>
</xwork>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts xwork-test-global-result-inheritence.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.