当前位置: 代码迷 >> Java Web开发 >> 把struts的action委托给spring处理需要添加哪些配置?解决方案
  详细解决方案

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

热度:259   发布时间:2016-04-17 10:52:42.0
把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>

类似于这样吧
  相关解决方案