ApplicationResources

能够为ActionServlet同时指定多个xml配置文件,文件之间以逗号分隔
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/shs-struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- user pen -->

对的,把ApplicationResources放到struts-config.xml就可以定义多个了
在xml中是不可以的。

你可能感兴趣的:(apache,xml,Web,struts,servlet)