No object in the CompoundRoot has a publicly accessible property named 'index2'

在设置webwork的devMode为true后,启动时出现下列异常:

引用
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)


原因就是devMode下form中的input会在action中找针对input name 的setter,页面jsp中name为Submit的标签在action中没有对应的setter方法所致;解决办法就是注掉devMode true:
#webwork.devMode=true

你可能感兴趣的:(jsp,xml,Webwork)