Subversion Repositories SmartDukaan

Rev

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