Source

xwork / src / test / com / opensymphony / xwork / config / providers / xwork-test-global-result-inheritence.xml

<?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>

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


	<package name="another" namespace="/base">
		<result-types>
			<result-type name="anotherMockResult" class="com.opensymphony.xwork.mock.MockResult" />
		</result-types>
		<global-results>
			<result name="mockResult1" type="anotherMockResult">
				<param name="identity">a1</param>
			</result>
			<result name="mockResult2" type="anotherMockResult">
				<param name="identity">a2</param>
			</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</param>
			</result>
		</global-results>
		<action name="childAction" />
	</package>
</xwork>