支柱2模型驱动的负整数(Struts 2 Model driven negative integer

2019-10-17 03:45发布

如何为负数(-123或-123.00)分配给模型驱动豆(实现模型驱动<豆>)。 当我试图传递值通过请求该操作会抛出异常以下

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)
文章来源: Struts 2 Model driven negative integer