Subversion Repositories SmartDukaan

Rev

Rev 1027 | Rev 1941 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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