<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/struts-config-file.xml,
/WEB-INF/system/struts-config-user.xml,
/WEB-INF/system/struts-config-org.xml,
/WEB-INF/system/struts-config-role.xml,
/WEB-INF/system/struts-config-fluxbasic.xml,
/WEB-INF/system/struts-config-area.xml,
/WEB-INF/system/struts-config-flux.xml,
/WEB-INF/system/struts-config-sysblock.xml,
/WEB-INF/data/struts-config-data.xml,
/WEB-INF/data/struts-config-blockreport.xml,
/WEB-INF/data/sturts-config-reguserinfo.xml,
/WEB-INF/data/struts-congif-basicdata.xml,
/WEB-INF/data/struts-config-blackdata.xml,
/WEB-INF/data/struts-config-interface.xml,
/WEB-INF/data/struts-config-regreport.xml,
/WEB-INF/data/struts-config-datareport.xml,
/WEB-INF/system/struts-config-monitor.xml,
/WEB-INF/system/struts-config-property.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>1</load-on-startup>
</servlet>
struts1.2如何配置多个struts-config.xml
一 分模块的
在 web.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/struts-config1.xml,
/WEB-INF/struts-config2.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup >
</servlet>
=============================
三 参数化的
我说还有简单的 在web-inf下配置若干个Strut-config文件 然后在web.xml配置文件中用通配符* 例如:
<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 </param-value>
</init-param>
<init-param>
<param-name>config/test </param-name>
<param-value>/WEB-INF/struts-test-config.xml </param-value>
</init-param>