<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"
<
struts
>
<
package
name
=
"department"
namespace
=
"/control/department"
extends
=
"struts-default"
>
<!--下划线可有可无,*是通配符,一个name可以写多个*,如list_*_*,等等,method="{1}"是调用对应第一个*的
方法名称;{1}这种形式可以写在class出,和result中;
-->
<
action
name
=
"list_*"
class
=
"cn.itcast.action.HelloWorldAction"
method
=
"{1}"
>
<
param
name
=
"savePath"
>department</
param
>
<
result
name
=
"success"
>/WEB-INF/message.jsp</
result
>
</
action
>
</
package
>
</
struts
>