| Line 30... |
Line 30... |
| 30 |
<bean type="org.apache.struts2.rest.handler.ContentTypeHandler" name="myxml" class="in.shop2020.support.controllers.handler.SxstreamContentHandler" />
|
30 |
<bean type="org.apache.struts2.rest.handler.ContentTypeHandler" name="myxml" class="in.shop2020.support.controllers.handler.SxstreamContentHandler" />
|
| 31 |
|
31 |
|
| 32 |
<!-- Overwrite Convention -->
|
32 |
<!-- Overwrite Convention -->
|
| 33 |
<constant name="struts.convention.action.suffix" value="Controller"/>
|
33 |
<constant name="struts.convention.action.suffix" value="Controller"/>
|
| 34 |
<constant name="struts.convention.action.mapAllMatches" value="true"/>
|
34 |
<constant name="struts.convention.action.mapAllMatches" value="true"/>
|
| 35 |
<constant name="struts.convention.default.parent.package" value="rest-default"/>
|
35 |
<constant name="struts.convention.default.parent.package" value="default"/>
|
| 36 |
|
36 |
|
| 37 |
<constant name="struts.convention.package.locators" value="controllers"/>
|
37 |
<constant name="struts.convention.package.locators" value="controllers"/>
|
| 38 |
<constant name="struts.convention.relative.result.types" value="velocity"/>
|
38 |
<constant name="struts.convention.relative.result.types" value="velocity"/>
|
| - |
|
39 |
|
| 39 |
|
40 |
|
| - |
|
41 |
<package name="default" extends="rest-default">
|
| - |
|
42 |
<result-types>
|
| - |
|
43 |
<result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult">
|
| - |
|
44 |
</result-type>
|
| - |
|
45 |
<result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult">
|
| - |
|
46 |
</result-type>
|
| - |
|
47 |
</result-types>
|
| - |
|
48 |
<interceptors>
|
| - |
|
49 |
<interceptor name="login"
|
| - |
|
50 |
class="in.shop2020.support.interceptors.LoginInterceptor" />
|
| - |
|
51 |
<interceptor-stack name="myDefault">
|
| - |
|
52 |
<interceptor-ref name="defaultStack">
|
| - |
|
53 |
<param name="exception.logEnabled">true</param>
|
| - |
|
54 |
<param name="exception.logLevel">ERROR</param>
|
| - |
|
55 |
</interceptor-ref>
|
| - |
|
56 |
<interceptor-ref name="store">
|
| - |
|
57 |
<param name="operationMode">AUTOMATIC</param>
|
| - |
|
58 |
</interceptor-ref>
|
| - |
|
59 |
</interceptor-stack>
|
| - |
|
60 |
</interceptors>
|
| - |
|
61 |
|
| - |
|
62 |
<default-interceptor-ref name="myDefault"></default-interceptor-ref>
|
| - |
|
63 |
<default-action-ref name="default" />
|
| - |
|
64 |
|
| - |
|
65 |
<global-results>
|
| - |
|
66 |
<!--
|
| - |
|
67 |
<result name="login" type="redirect">
|
| - |
|
68 |
<param name="location">login</param>
|
| - |
|
69 |
</result>
|
| - |
|
70 |
-->
|
| - |
|
71 |
<result name="exception" type="redirect">exception.vm</result>
|
| - |
|
72 |
</global-results>
|
| - |
|
73 |
|
| - |
|
74 |
<action name="default">
|
| - |
|
75 |
<result type="redirect">/</result>
|
| - |
|
76 |
</action>
|
| - |
|
77 |
</package>
|
| 40 |
</struts>
|
78 |
</struts>
|