in my Test.class ,field1 is Double type.
in html code, <input type="text" name="field1" value="0.0"/>
when i submit form it will throw this exception if value of field1 is 0 or 0.0 -
WARNING: Error setting value
ognl.MethodFailedException: Method "setField1" failed for object net.one97.action.Test@16b98c3 [java.lang.NoSuchMethodException: setField1([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)
---
I tried many tricks but problem will not solve.
1)
create log4j.properties and put only two lines
log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error
if there is need to configure log4j then let me know.
2) create struts.properties
and put a line -
struts.devMode=false
3)in struts.xml
<
struts>
<constant name="struts.devMode" value="false" />
<package ...
...
</package>
</struts>