jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes OgnlValueStack - Error setting value <ognl.MethodFailedException: Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "OgnlValueStack - Error setting value <ognl.MethodFailedException: Method "setId" failed for object" Watch "OgnlValueStack - Error setting value <ognl.MethodFailedException: Method "setId" failed for object" New topic
Author

OgnlValueStack - Error setting value <ognl.MethodFailedException: Method "setId" failed for object

Vallaru smitha
Ranch Hand

Joined: Aug 19, 2008
Posts: 87

Hi,

I have a hidden integer filed on my form

<s:hidden name="id" value=%{"id"}

And when page is submitted I am getting an error

WARN] OgnlValueStack - Error setting value ><ognl.MethodFailedException: Method "setId" failed for object

I did some searching and found that S:hidden returns string and thats the reason for the error.

could anyone shed some light and help me to resolve it.

Thanks>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: OgnlValueStack - Error setting value <ognl.MethodFailedException: Method "setId" failed for object