Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
317 ashish 1
<?xml version="1.0" encoding="UTF-8" ?>
769 vikas 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. */ -->
317 ashish 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>
650 rajveer 20
 
769 vikas 21
	<bean type="org.apache.struts2.rest.handler.ContentTypeHandler"
22
		name="myxml" class="in.shop2020.serving.controllers.handler.SxstreamContentHandler" />
650 rajveer 23
 
769 vikas 24
	<!-- Overwrite Convention -->
25
	<constant name="struts.convention.action.suffix" value="Controller" />
26
	<constant name="struts.convention.action.mapAllMatches" value="true" />
27
	<constant name="struts.convention.default.parent.package"
28
		value="default" />
650 rajveer 29
 
769 vikas 30
	<constant name="struts.convention.package.locators" value="controllers" />
31
	<constant name="struts.convention.relative.result.types"
32
		value="velocity" />
317 ashish 33
 
1031 rajveer 34
    <constant name="struts.action.extension" value=""/>
2320 rajveer 35
    <constant name="struts.action.excludePattern" value="/js/.*, /css/.*, /images/.*, /helpdocs/.*, /sitemap.xml, /robots.txt"/>
1031 rajveer 36
 
769 vikas 37
	<package name="default" extends="rest-default">
857 vikas 38
	    <result-types>
39
	        <result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult">
40
            </result-type>
41
	        <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult">
42
            </result-type>
43
	    </result-types>
781 vikas 44
		<interceptors>
45
			<interceptor name="user"
46
				class="in.shop2020.serving.interceptors.UserInterceptor" />
1614 rajveer 47
			<interceptor name="createuser"
2907 rajveer 48
				class="in.shop2020.serving.interceptors.CreateUserInterceptor" >
49
				<param name="cookieDomain">${in.shop2020.cookieDomain}</param>
50
			</interceptor>
781 vikas 51
			<interceptor name="login"
52
				class="in.shop2020.serving.interceptors.LoginInterceptor" />
1862 vikas 53
		    <interceptor name="tracker"
54
                class="in.shop2020.serving.interceptors.TrackingInterceptor" />
1614 rajveer 55
 
781 vikas 56
			<interceptor-stack name="myDefault">
1658 vikas 57
				<interceptor-ref name="user">
2419 vikas 58
				    <param name="cookieDomain">${in.shop2020.cookieDomain}</param>
1658 vikas 59
				</interceptor-ref>
1862 vikas 60
				<interceptor-ref name="tracker">
2419 vikas 61
				    <param name="cookieDomain">${in.shop2020.cookieDomain}</param>
1862 vikas 62
                </interceptor-ref>
63
                <interceptor-ref name="defaultStack">
822 vikas 64
			        <param name="exception.logEnabled">true</param>
65
                    <param name="exception.logLevel">ERROR</param>
66
			    </interceptor-ref>
830 vikas 67
			    <interceptor-ref name="store">
68
            		<param name="operationMode">AUTOMATIC</param>
69
        		</interceptor-ref>
781 vikas 70
			</interceptor-stack>
71
		</interceptors>
72
 
73
		<default-interceptor-ref name="myDefault"></default-interceptor-ref>
769 vikas 74
		<default-action-ref name="default" />
75
 
76
		<global-results>
77
			<result name="exception" type="redirect">exception</result>
924 vikas 78
			<result name="login" type="redirect">
79
			    <param name="location">login?redirectUrl=${redirectUrl}</param>
80
			</result>
769 vikas 81
		</global-results>
82
 
83
		<global-exception-mappings>
84
			<exception-mapping exception="java.lang.Exception"
85
				result="exception" />
86
		</global-exception-mappings>
87
 
88
		<action name="default">
89
			<result type="redirect">/</result>
90
		</action>
91
	</package>
317 ashish 92
</struts>