当前位置: 代码迷 >> Java Web开发 >> Caused by: ognl.NoSuchPropertyException: com.user.Action.
  详细解决方案

Caused by: ognl.NoSuchPropertyException: com.user.Action.

热度:803   发布时间:2016-04-17 10:46:26.0
跪求赐教!!
在struts2编程(用户注册)显示的出错问题为
严重: Could not create and/or set value back on to object
com.user.Action.UserAction.user - Class: ognl.OgnlRuntime
File: OgnlRuntime.java
Method: setFieldValue
Line: 1643 - ognl/OgnlRuntime.java:1643:-1
Caused by: ognl.NoSuchPropertyException: com.user.Action.UserAction.user [java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class com.user.Action.UserAction with modifiers ""]
如何改呀?

------解决方案--------------------
Caused by: ognl.NoSuchPropertyException: com.user.Action.UserAction.user 
UserAction中缺少属性,是不是传了参数,Action中没有一个对应的属性,对其进行接收。。。
------解决方案--------------------
can not access a member of class com.user.Action.UserAction with modifiers修饰符是否有问题
------解决方案--------------------
看下作用域
  相关解决方案