日期:2014-05-17  浏览次数:20635 次

把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>

类似于这样吧