在设置webwork的devMode为true后,启动时出现下列异常:
[quote]com.opensymphony.xwork.interceptor.ParametersInterceptor - Developer Notification (set webwork.devMode to false to disable this message):
No object in the CompoundRoot has a publicly accessible property named 'Submit' (no setter could be found)[/quote]
原因就是devMode下form中的input会在action中找针对input name 的setter,页面jsp中name为Submit的标签在action中没有对应的setter方法所致;解决办法就是注掉devMode true:
[quote]com.opensymphony.xwork.interceptor.ParametersInterceptor - Developer Notification (set webwork.devMode to false to disable this message):
No object in the CompoundRoot has a publicly accessible property named 'Submit' (no setter could be found)[/quote]
原因就是devMode下form中的input会在action中找针对input name 的setter,页面jsp中name为Submit的标签在action中没有对应的setter方法所致;解决办法就是注掉devMode true:
#webwork.devMode=true