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 database. Fair enough because it's a double. If I enter things like 12, 12.3, 12.34, etc. they pass validation OK. But it won't accept "0.0" or "0". Struts 2.1.6. Default interceptors. Using the Tiles and Spring plugins. JSPs and XHTML theme. All pretty standard stuff. I've searched but nobody else seems to have anything like this issue. Any ideas? -- Richard -- View this message in context: http://www.nabble.com/Struts-2-Type-conversion-refuses-0.0-for-a-double--tp21738188p21738188.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org