Subversion Repositories SmartDukaan

Rev

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