Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-01-30 Thread san-ho-zay
Thanks for your reply Lukasz. In practice, I should use BigDecimal to avoid rounding problems but it doesn't change the fact that 0.0 shouldn't be thrown up as an invalid conversion for a double. This works perfectly well, so I can't understand why Struts2 throws 0.0 out as an error ... public

Struts 2 Type conversion refuses 0.0 for a double?

2009-01-29 Thread san-ho-zay
I have a Struts2 action with a double property called amount. No validation rules on the action as yet. When I enter 0.0 into the amount on the JSP page, it displays an Invalid field value for field amount error. If I blank the amount it gets through the conversion and 0.0 gets stored in the