I have a double in an action: private double dval;
with mutators public double getDval() { return dval; } public void setDval (double dval) { this.dval = dval; } I have this form in my jsp page: <s:form action="TestAction_doCommand"> <s:textfield label="Double Value" name="dval" size="10"/> <s:submit/> </s:form> Whenever I enter "0" or "0.0" in the text field, OGNL throws ognl.MethodFailedException: Method "setDval" failed for object com.rp.db.actions.testact...@16cefa8 [java.lang.NoSuchMethodException: setDval([Ljava.lang.String;)] BUT, it properly converts all non-zero values without complaint and even converts the empty string to "0.0"! Is there some way I can get OGNL to accept the "0" and "0.0" values? Thanks, Bill B