spring+struts时遇到问题了

来源:百度知道 编辑:UC知道 时间:2024/05/27 20:37:02
我在struts-config.xml中这样配置
<struts-config>
<data-sources />
<form-beans>
<form-bean name="userInfoForm" type="com.soho.webtier.struts.form.UserInfoForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action name="userInfoForm" path="/login" parameter="method" scope="request" type="com.soho.webtier.struts.action.LoginAction" validate="false">
<forward name="ok" path="ok.jsp" redirect="true" />
</action>
</action-mappings>
<controller
processorClass="org.springframework.web.struts.DelegatingRequestProcessor"/>
<message-resources parameter="com.soho.webtier.struts.ApplicationResources" />
<plug-in className="org.springframework.web.struts.ContextLo

Struts-config.xml中的type路径改成这个
type="org.springframework.web.struts.DelegatingActionProxy"
还有就是你在导入Spring架构时要导入相应的jar包,如果你不确定用到哪些,建议初期全都导入。应该没有问题了。