forked from ufologist/RAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstruts.xml
71 lines (62 loc) · 2.8 KB
/
struts.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.action.extension" value="action,do" />
<constant name="struts.i18n.encoding" value="UTF-8"></constant>
<package name="rap-default" extends="struts-default">
<result-types>
<result-type name="rapVelocityResult" default="true"
class="org.apache.struts2.views.velocity.RapVelocityResult" />
</result-types>
<interceptors>
<interceptor-stack name="baseStack">
<interceptor-ref name="createSession" />
<interceptor-ref name="exception" />
<interceptor-ref name="alias" />
<interceptor-ref name="servlet-config" />
<interceptor-ref name="prepare" />
<interceptor-ref name="i18n" />
<interceptor-ref name="chain" />
<interceptor-ref name="model-driven" />
<interceptor-ref name="static-params" />
<interceptor-ref name="params"/>
<interceptor-ref name="conversionError" />
<interceptor-ref name="validation">
<param name="excludeMethods">input,back,cancel,browse</param>
</interceptor-ref>
<interceptor-ref name="workflow">
<param name="excludeMethods">input,back,cancel,browse</param>
</interceptor-ref>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="baseStack" />
<!-- 全局result -->
<global-results>
<result name="login" type="velocity">/account/login.vm</result>
<result name="error" type="velocity">/error.vm</result>
<result name="json-error" type="velocity">/bcom/jsonError.cb.vm</result>
<result name="input" type="velocity">/error.vm</result>
<result name="redirect" type="velocity">/common/redirect.vm</result>
</global-results>
<!-- <global-exception-mappings> <exception-mapping result="error" exception="java.lang.RuntimeException"
/> <exception-mapping result="error" exception="java.lang.Exception" /> </global-exception-mappings> -->
</package>
<!-- project action mapping -->
<include file="com/taobao/rigel/rap/project/web/action/struts.xml" />
<!-- organization action mapping -->
<include file="com/taobao/rigel/rap/organization/web/action/struts.xml" />
<!-- account action mapping -->
<include file="com/taobao/rigel/rap/account/web/action/struts.xml" />
<!-- workspace action mapping -->
<include file="com/taobao/rigel/rap/workspace/web/action/struts.xml" />
<!-- platform action mapping -->
<include file="com/taobao/rigel/rap/platform/web/action/struts.xml" />
<!-- platform tester mapping -->
<include file="com/taobao/rigel/rap/tester/web/action/struts.xml" />
<!-- platform mock mapping -->
<include file="com/taobao/rigel/rap/mock/web/action/struts.xml" />
<!-- API mock mapping -->
<include file="com/taobao/rigel/rap/api/web/action/struts.xml" />
</struts>