A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Struts 2 Model driven negative integer
Joined: Jul 25, 2008
Aug 10, 2012 09:21:15
How to assign a negative number (-123 or -123.00) to a ModelDriven bean (implements ModelDriven< Bean >). When i try passing the value through request for that action it throws below exception
Fri Aug 10 18:45:27 IST 2012 unable to convert value using type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter] Overflow or underflow casting: "-123.12" into class java.lang.Double - [unknown location] at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.doConvertToNumber(XWorkBasicConverter.java:406) at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.doConvertToNumber(XWorkBasicConverter.java:415) at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.convertValue(XWorkBasicConverter.java:118)
variable in modeldriven bean is declare as Float
"Many of lifes failure are people who did not realize how close they were to success when they gave up."
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Struts 2 Model driven negative integer
Inappropriate OGNL expression and a strange problem
How to Configure SSL over Database in Spring?
Assertion in java
Struts 2 client side validation not working with xml configuration
Spring, Struts 2, Tiles 2 .NoSuchDefinitionException
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014