- 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-config2.xml
- </param-value>
- </init-param-->
- <init-param>
- <param-name>config</param-name>
- <param-value>/WEB-INF/struts-config.xml
- </param-value>
- </init-param>
- <load-on-startup>2</load-on-startup>//加上这句就可以了
- </servlet>
复制代码 |
|