TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
1,配置多个struts-config.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>
[color=#990066,strength=3);]/WEB-INF/struts-config.xml,
[color=#9900cc,strength=3);]/WEB-INF/struts-config-login.xml,
[color=#990099,strength=3);]/WEB-INF/struts-config-user.xml,
[color=#990099,strength=3);]/WEB-INF/struts-config-management.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
2,配置命名空间:
<init-param>
<param-name>config/[color=#9900cc,strength=3);]namespace1</param-name>
<param-value>/WEB-INF/struts-config-[color=#9900cc,strength=3);]namespace1.xml</param-value>
</init-param>
|
|