Subversion Repositories SmartDukaan

Rev

Rev 3561 | Rev 6342 | 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
 
3303 rajveer 24
	<bean name="mymapper" type="org.apache.struts2.dispatcher.mapper.ActionMapper" 
25
      	 class="in.shop2020.serving.mappers.SaholicMapper" /> 
26
 
27
 
769 vikas 28
	<!-- Overwrite Convention -->
29
	<constant name="struts.convention.action.suffix" value="Controller" />
30
	<constant name="struts.convention.action.mapAllMatches" value="true" />
31
	<constant name="struts.convention.default.parent.package"
32
		value="default" />
650 rajveer 33
 
769 vikas 34
	<constant name="struts.convention.package.locators" value="controllers" />
35
	<constant name="struts.convention.relative.result.types"
36
		value="velocity" />
317 ashish 37
 
1031 rajveer 38
    <constant name="struts.action.extension" value=""/>
2320 rajveer 39
    <constant name="struts.action.excludePattern" value="/js/.*, /css/.*, /images/.*, /helpdocs/.*, /sitemap.xml, /robots.txt"/>
1031 rajveer 40
 
3303 rajveer 41
	<constant name="struts.mapper.class" value="mymapper" /> 
42
 
769 vikas 43
	<package name="default" extends="rest-default">
857 vikas 44
	    <result-types>
5468 rajveer 45
	        <result-type name="redirect" class="in.shop2020.serving.dispatcher.SaholicServletRedirectResult">
857 vikas 46
            </result-type>
47
	        <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult">
48
            </result-type>
49
	    </result-types>
781 vikas 50
		<interceptors>
51
			<interceptor name="user"
52
				class="in.shop2020.serving.interceptors.UserInterceptor" />
3052 vikas 53
		    <interceptor name="caching"
54
                class="in.shop2020.serving.interceptors.CachingInterceptor" />
1614 rajveer 55
			<interceptor name="createuser"
2907 rajveer 56
				class="in.shop2020.serving.interceptors.CreateUserInterceptor" >
57
				<param name="cookieDomain">${in.shop2020.cookieDomain}</param>
58
			</interceptor>
3561 rajveer 59
			<interceptor name="source"
60
				class="in.shop2020.serving.interceptors.SourceInterceptor" >
61
				<param name="cookieDomain">${in.shop2020.cookieDomain}</param>
62
			</interceptor>
781 vikas 63
			<interceptor name="login"
64
				class="in.shop2020.serving.interceptors.LoginInterceptor" />
1862 vikas 65
		    <interceptor name="tracker"
66
                class="in.shop2020.serving.interceptors.TrackingInterceptor" />
1614 rajveer 67
 
781 vikas 68
			<interceptor-stack name="myDefault">
1658 vikas 69
				<interceptor-ref name="user">
2419 vikas 70
				    <param name="cookieDomain">${in.shop2020.cookieDomain}</param>
1658 vikas 71
				</interceptor-ref>
1862 vikas 72
				<interceptor-ref name="tracker">
2419 vikas 73
				    <param name="cookieDomain">${in.shop2020.cookieDomain}</param>
1862 vikas 74
                </interceptor-ref>
3561 rajveer 75
				<interceptor-ref name="source">
76
				    <param name="cookieDomain">${in.shop2020.cookieDomain}</param>
77
                </interceptor-ref>
1862 vikas 78
                <interceptor-ref name="defaultStack">
822 vikas 79
			        <param name="exception.logEnabled">true</param>
80
                    <param name="exception.logLevel">ERROR</param>
81
			    </interceptor-ref>
830 vikas 82
			    <interceptor-ref name="store">
83
            		<param name="operationMode">AUTOMATIC</param>
84
        		</interceptor-ref>
781 vikas 85
			</interceptor-stack>
86
		</interceptors>
87
 
88
		<default-interceptor-ref name="myDefault"></default-interceptor-ref>
769 vikas 89
		<default-action-ref name="default" />
90
 
91
		<global-results>
92
			<result name="exception" type="redirect">exception</result>
924 vikas 93
			<result name="login" type="redirect">
94
			    <param name="location">login?redirectUrl=${redirectUrl}</param>
95
			</result>
769 vikas 96
		</global-results>
97
 
98
		<global-exception-mappings>
99
			<exception-mapping exception="java.lang.Exception"
100
				result="exception" />
101
		</global-exception-mappings>
102
 
103
		<action name="default">
104
			<result type="redirect">/</result>
105
		</action>
106
	</package>
317 ashish 107
</struts>