No object in the CompoundRoot has a publicly accessible property named

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方法
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章