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
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
2 matches
Mail list logo