-
Notifications
You must be signed in to change notification settings - Fork 0
/
struts.xml
52 lines (36 loc) · 1.52 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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<!--
<package name="bbs2009_default" extends="struts-default">
<global-exception-mappings>
<exception-mapping result="exception_handle" exception="Exception"></exception-mapping>
</global-exception-mappings>
</package>
-->
<package name="admin" namespace="/admin" extends="struts-default" >
<action name="index">
<result>/admin/index.html</result>
</action>
<action name="*-*" class="com.bjsxt.bbs2009.action.{1}Action" method="{2}">
<result>/admin/{1}-{2}.jsp</result>
<result name="input">/admin/{1}-{2}.jsp</result>
</action>
<!--
<action name="category" class="com.bjsxt.bbs2009.action.CategoryAction">
<result>/admin/category_list.jsp</result>
<result name="add_input">/admin/category_add_input.jsp</result>
<result name="update_input">/admin/category_update_input.jsp</result>
</action>
-->
</package>
<package name="front" namespace="/" extends="struts-default" >
<!-- <default-action-ref name="index"/> --> <!-- bug!!! -->
<action name="index" class="com.bjsxt.bbs2009.action.CategoryAction" method="list">
<result>/index.jsp</result>
</action>
</package>
<!--这是添加的文字内容-->
</struts>