| 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 |
|
| 769 |
vikas |
34 |
<package name="default" extends="rest-default">
|
| 745 |
chandransh |
35 |
<!-- <interceptors>-->
|
| 769 |
vikas |
36 |
<!-- <interceptor name="login"-->
|
|
|
37 |
<!-- class="in.shop2020.serving.interceptors.LoginInterceptor" />-->
|
|
|
38 |
<!-- </interceptors>-->
|
|
|
39 |
<!-- -->
|
|
|
40 |
<default-action-ref name="default" />
|
|
|
41 |
|
|
|
42 |
<global-results>
|
|
|
43 |
<result name="exception" type="redirect">exception</result>
|
|
|
44 |
</global-results>
|
|
|
45 |
|
|
|
46 |
<global-exception-mappings>
|
|
|
47 |
<exception-mapping exception="java.lang.Exception"
|
|
|
48 |
result="exception" />
|
|
|
49 |
</global-exception-mappings>
|
|
|
50 |
|
|
|
51 |
<action name="default">
|
|
|
52 |
<result type="redirect">/</result>
|
|
|
53 |
</action>
|
|
|
54 |
</package>
|
| 317 |
ashish |
55 |
</struts>
|