Subversion Repositories SmartDukaan

Rev

Rev 2674 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2674 vikas 1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!-- /* * $Id: struts-plugin.xml 722219 2008-12-01 20:41:26Z musachy $ * 
3
	* Licensed to the Apache Software Foundation (ASF) under one * or more contributor 
4
	license agreements. See the NOTICE file * distributed with this work for 
5
	additional information * regarding copyright ownership. The ASF licenses 
6
	this file * to you under the Apache License, Version 2.0 (the * "License"); 
7
	you may not use this file except in compliance * with the License. You may 
8
	obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 
9
	* * Unless required by applicable law or agreed to in writing, * software 
10
	distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 
11
	WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the 
12
	License for the * specific language governing permissions and limitations 
13
	* under the License. */ -->
14
 
15
<!DOCTYPE struts PUBLIC
16
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
17
        "http://struts.apache.org/dtds/struts-2.0.dtd">
18
 
19
<struts>
20
 
21
	<!-- Overwrite Convention -->
22
	<constant name="struts.convention.action.suffix" value="Controller" />
23
	<constant name="struts.convention.action.mapAllMatches" value="true" />
24
	<constant name="struts.convention.default.parent.package" value="default" />
25
 
26
	<constant name="struts.convention.package.locators" value="controllers" />
27
	<constant name="struts.convention.relative.result.types" value="velocity" />
28
 
29
	<package name="default" extends="rest-default">
30
	    <result-types>
31
	        <result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult">
32
            </result-type>
33
	        <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult">
34
            </result-type>
35
	    </result-types>
36
		<interceptors>
20110 kshitij.so 37
			<interceptor name="returnTransactionValidator" 
38
			class="in.shop2020.serving.interceptors.ReturnTransactionsInterceptor"></interceptor>
39
 
2674 vikas 40
			<interceptor-stack name="myDefault">
41
                <interceptor-ref name="defaultStack">
42
			        <param name="exception.logEnabled">true</param>
43
                    <param name="exception.logLevel">ERROR</param>
44
			    </interceptor-ref>
45
			    <interceptor-ref name="store">
46
            		<param name="operationMode">AUTOMATIC</param>
47
        		</interceptor-ref>
48
			</interceptor-stack>
49
		</interceptors>
50
 
51
		<default-interceptor-ref name="myDefault"></default-interceptor-ref>
52
 
53
		<global-results>
54
			<result name="exception" type="redirect">exception</result>
55
		</global-results>
56
 
57
		<global-exception-mappings>
58
			<exception-mapping exception="java.lang.Exception"
59
				result="exception" />
60
		</global-exception-mappings>
61
	</package>
62
</struts>