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

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

This example Struts source code file (xwork-test-result-types.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-result-types.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="xworkResultTypesTestPackage1">
		<result-types>
			<result-type name="result1" class="com.opensymphony.xwork2.mock.MockResult" >
				<param name="param1">value1
				<param name="param2">value2
				<param name="param3">value3
			</result-type>
			<result-type name="result2" class="com.opensymphony.xwork2.mock.MockResult">
				<param name="paramA">valueA
				<param name="paramB">valueB
			</result-type>
		</result-types>
	</package>
	
	
	<package name="xworkResultTypesTestPackage2">
		<result-types>
			<result-type name="result1" class="com.opensymphony.xwork2.mock.MockResult" >
				<param name="param1">value1
				<param name="param2">value2
				<param name="param3">value3
			</result-type>
			<result-type name="result2" class="com.opensymphony.xwork2.mock.MockResult">
				<param name="paramA">valueA
				<param name="paramB">valueB
			</result-type>
		</result-types>
		
		<action name="action1">
			<result name="success" type="result1">
				<param name="param1">newValue1
				<param name="param3">newValue3
				<param name="param10">value10
				<param name="param11">value11
			</result>
		</action>
		
		<action name="action2">
			<result name="success" type="result2">
				<param name="paramB">newValueB
				<param name="paramZ">valueZ
			</result>
		</action>
	</package>
	
</xwork>

Other Struts examples (source code examples)

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