html:hidden property=action / in jsp's form! 問題.遇到過?!

GT發表於2006-08-28
java.lang.Exception: System error! please call system Admin.java.lang.Exception: Need a field : <html:hidden property=action /> in jsp's form!
com.jdon.strutsutil.ModelSaveAction.execute(ModelSaveAction.java:94)
經過檢查:
struts-config.xml的配置以及儲存頁面的hidden name=action都配置正確,問題是一點選儲存就報上面的錯誤
頁面關鍵:
<html:form action="/mainsSaveAction.do" method="POST" >
<html:hidden name="mainsForm" property="action" value=""/>
struts-config.xml關鍵:
<action name="mainsForm" path="/mainsSaveAction" type="com.jdon.strutsutil.ModelSaveAction">
mainsForm關鍵:
public class MainsForm extends ModelForm {
public String id;
public String ids;
public String mid;
public String name;
public String sec_name;
//public String action;

相關文章