Source

xwork / showcase / src / resources / com / opensymphony / xwork2 / showcase / interceptorExample / xwork-interceptor-example.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xwork PUBLIC 
	"-//OpenSymphony Group//XWork 2.1//EN"
	"http://www.opensymphony.com/xwork/xwork-2.1.dtd">
	
<xwork>
	<include file="xwork-default.xml" />
	<package name="default-interceptor-example" namespace="/interceptorExample">
		<result-types>
			<result-type name="printToConsole" class="com.opensymphony.xwork2.showcase.PrintToConsoleResult" />
		</result-types>
	
		<interceptors>
			<interceptor name="interceptor1" class="interceptorExample.Interceptor1" >
				<param name="param">paramValue1</param>
			</interceptor>
			<interceptor name="interceptor2" class="com.opensmyphony.xwork2.showcase.interceptorExample.Interceptor2">
				<param name="param">paramValue2</param>
			</interceptor>
			<interceptor name="interceptor3" class="interceptorExample.Interceptor3">
				<param name="param">paramValue2</param> 
			</interceptor>
			<interceptor-stack name="myInterceptorStack">
				<interceptor-ref name="interceptor1" />
				<interceptor-ref name="interceptor2" />
				<interceptor-ref name="interceptor3" />
			</interceptor-stack>
		</interceptors>
		
		<action name="interceptorExampleAction1" 
		class="interceptorExample.Action1"
		>
			<interceptor-ref name="interceptor1" />
			<interceptor-ref name="interceptor2" />
			<result type="printToConsole">InterceptorExample - Action1 - Result</result>
		</action>
		
		<action name="interceptorExampleAction2" class="interceptorExample.Action2">
			<interceptor-ref name="myInterceptorStack" />
			<result type="printToConsole">InterceptorExample - Action2 - Result</result>
		</action>
		
		<action name="interceptorExampleAction3" class="interceptorExample.Action3">
			<interceptor-ref name="interceptor1">
				<param name="param">new paramValue1</param>
			</interceptor-ref>
			<result type="printToConsole">InterceptorExample - Action3 - Result</result>
		</action>
		
		<action name="interceptorExampleAction4" class="interceptorExample.Action4">
			<interceptor-ref name="myInterceptorStack">
				<param name="interceptor1.param">new paramValue1</param>
			</interceptor-ref>
			<result type="printToConsole">InterceptorExample - Action4 - Result</result>
		</action>
	</package>
</xwork>		
	
	
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.