You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/05/30 20:13:36 UTC

DO NOT REPLY [Bug 7317] - RequestUtils.populate() convert null or empty parameter to 0 integer

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7317>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7317

RequestUtils.populate() convert null or empty parameter to 0 integer





------- Additional Comments From hal.deadman@tallan.com  2002-05-30 18:13 -------
Can we just add something like this to the Struts Action Servlet to make the 
behaviour the same as previous versions of struts before ConvertUtils was 
modified to make zero the default default. It could be made configurable later 
but this might suffice for the time being. 

ConverUtils.register(new FloatConverter(null), Float.class);
ConverUtils.register(new IntegerConverter(null), Integer.class);
ConverUtils.register(new LongConverter(null), Long.class);
ConverUtils.register(new ShortConverter(null), Short.class);
ConverUtils.register(new DoubleConverter(null), Double.class);
ConverUtils.register(new FloatConverter(null), Float.class);
ConverUtils.register(new BooleanConverter(null), Boolean.class);

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>