关于SSH集成方案的探讨
1.Spring 与 Struts的集成
将Struts中的Action交给Spring负责管理,利用接口进行依赖注入,配置Action的时候不用id,而用name,
<bean name="/login"
class="com.myxx520.user.web.actions.LoginAction">
<property name="userManager" ref="userManager"></property>
</bean>
在Struts-config.xml中配置
<action path="/login"
type="org.springframework.web.struts.DelegatingActionProxy"
name="loginForm" scope="request">
<forward name="scuess" path="/scuess.jsp"......
阅读全文