首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

把struts的action委托给spring处理需要添加哪些配置?解决方案

2012-03-20 
把struts的action委托给spring处理需要添加哪些配置?是不是只需要在applicationContext.xml和struts.xml中

把struts的action委托给spring处理需要添加哪些配置?
是不是只需要在applicationContext.xml和struts.xml中加?

[解决办法]
applicationContext.xml
<bean name="/person" class="com.ssi.struts.action.PersonAction" autowire="byName" />
struts.xml
<action parameter="op" path="/person"
type="org.springframework.web.struts.DelegatingActionProxy"
validate="false">
<forward name="toIndex" path="/index.jsp" />
</action>

类似于这样吧

热点排行