forked from framgia/Java-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruts.xml
More file actions
36 lines (28 loc) · 1.02 KB
/
struts.xml
File metadata and controls
36 lines (28 loc) · 1.02 KB
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
<?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>
<!-- Define default-web package: struts-default -->
<package name="default-web" namespace="/" extends="json-default">
<result-types>
<result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult" default="true" />
</result-types>
<global-results>
<!-- Define Exception Forward -->
<result name="sys_exception">Default.SystemException</result>
</global-results>
<global-exception-mappings>
<exception-mapping result="sys_exception"
exception="java.lang.Exception" />
<exception-mapping result="sys_exception"
exception="java.lang.RuntimeException" />
</global-exception-mappings>
<action name="" class="springUserAction" method="homePage">
<result>HomePage</result>
</action>
</package>
<!-- ===== Include Web Module Configuration ===== -->
<include file="struts-user.xml" />
</struts>