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