日期:2014-05-20  浏览次数:20694 次

spring ,struts问题
大家好:jbuilder2005中把struts和soring集成起来(简单的)但总是报错,请求帮助。

struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
  <form-beans>
  <form-bean name="loginActionForm" type="UserManager.forms.LoginActionForm" />
  </form-beans>
  <action-mappings>
  <action name="loginActionForm"
  path="/loginAction"
  scope="request"
  type="org.springframework.web.struts.DelegatingActionProxy"
  validate="false" >
  <forward name="success" path="/success.jsp"/>
   
  </action>
  </action-mappings>
</struts-config>

------解决方案--------------------
引用楼主 lxl23608282 的帖子:
大家好:jbuilder2005中把struts和soring集成起来(简单的)但总是报错,请求帮助。

struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name="loginActionForm" type="UserManager.forms.LoginActionForm" />
</form-beans>
<action-mappings>
<action name="loginActionForm"
path="/loginAction"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy"
validate="false" >
<forward name="success" path="/success.jsp"/>
 
</action>
</action-mappings>
</struts-config>