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=16875>. 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=16875 BeanUtils.populate does not skip zero lenght String [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From [EMAIL PROTECTED] 2003-02-07 17:14 ------- The contract of the standard converters is to perform the valid conversions that are supported by the underlying data type. For numeric types like BigDecimal, that means delegating to the underlying class conversion capabilities. And the BigDecimal class does not consider a zero-length String to be a valid representation of the numeric value. You are free, of course, to create your own Converter implementations that deal with this, and register them yourself, but it sounds like you've got a more important problem. If you are using Struts form beans, and have a property in your ActionForm that has type BigDecimal, you should *really* switch that to a String, and do your conversion in the action after validation has been successfully completed. Otherwise, what happens when a user types "1a3" instead of "123" into the field? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]