您的位置:首页 > 移动开发 > Objective-C

No object in the CompoundRoot has a publicly accessible property named

2013-10-23 18:00 513 查看
No object in the CompoundRoot has a publicly accessible property named 'typeid' (no setter could be found)

在设置struts的devMode为true后 出现上述异常

原因就是devMode下form中的input会在action中找针对input name的setter

(struts.devMode = false,设置为true时,所有有名字(name)的input都必须

有对应的setter,无论是input为hidden设置的隐藏域还是通过url传的参数值)

解决方法就是注掉devMode true

或者为参数值设置set,get方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐