日期:2014-05-17  浏览次数:20638 次

跪求赐教!!
在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修饰符是否有问题
------解决方案--------------------
看下作用域