1、添加struts1.2的支持。
2、添加spring2.5的时候,要记得添加spring-web.jar
3、在web.xml中配置spring的监听器:
<listener>
<display-name>ContextLoaderListener</display-name>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
4、在struts-config.xml中添加插件:
<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"/>
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"/>
</plug-in>
5、参考http://www.ibm.com/developerworks/cn/java/j-sr2.html