File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OgnlValueStack - Error setting value <ognl.MethodFailedException: Method "setId" failed for object
 
Similar Threads
[Stripes] forms: display errors from @ValidateNestedProperties
type converson failed in struts 2 : ognl.MethodFailedException
Struts2 2.1.8 form validation and setter type mismatch
Struts2 <s:select multiple=true> -> Eventbean.setMap(Map map_from_multile_struts2)
Struts 2 problem -- s:hidden