环境:MyEclipse 6.5 + Tomcat6.0.18+Struts2.1+Hibernate3.2+Spring2.5.6
问题:启动Tomcat出现
ognl.OgnlException: target is null for setProperty(null,"tbUserEmail", [Ljava.lang.String;@10f8ee4)异常。
解决:
1.在struts.xml设置webwork.devMode = false。
webwork.devMode = false
2.在Action的Java源文件中添加PO的setter和getter。
参考资料:
http://zhidao.baidu.com/question/262427622.html
http://stackoverflow.com/questions/5064366/ognl-ognlexception-target-is-null-for-setproperty