struts开发注意的问题一
时间:2008-04-22 来源:pl-kong
在使用Struts开始Web应用程序时,创建Formbean,其中的Action继承DispatchAction,在struts-config.xml中action的映射类型type需要手动修改为:org.springframework.web.struts.DelegatingActionProxy
<action-mappings>
<action attribute="feedbackForm" input="/feedback.jsp"
name="feedbackForm" parameter="method" path="/feedback"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy"
validate="false" />
</action-mappings>
切记,切记。。。。。。,不然会出错的。
<action-mappings>
<action attribute="feedbackForm" input="/feedback.jsp"
name="feedbackForm" parameter="method" path="/feedback"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy"
validate="false" />
</action-mappings>
切记,切记。。。。。。,不然会出错的。
相关阅读 更多 +