-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstruts.xml
More file actions
27 lines (20 loc) · 764 Bytes
/
Copy pathstruts.xml
File metadata and controls
27 lines (20 loc) · 764 Bytes
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
<?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>
<include file="login.xml"></include>
<package name="default" namespace="/" extends="struts-default">
<!-- 默认action -->
<default-action-ref name="index"></default-action-ref>
<action name="index">
<result>/error.jsp</result>
</action>
<action name="*" class="com.lxw.scoreManager.action.ScoreController" method="{1}">
<result>/choose.jsp</result>
<!-- input:当类型转换错误是返回input -->
<result name="{1}Input">/{1}.jsp</result>
<result name="{1}">/{1}Display.jsp</result>
</action>
</package>
</struts>