commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamal desilva <chama...@yahoo.com>
Subject DateLocaleConverter and null values
Date Sun, 15 Oct 2006 04:09:02 GMT
Hi,

I used this code to register date conversion.

String pattern = "dd/MM/yy";
locale = Locale.getDefault();
DateLocaleConverter converter = new
DateLocaleConverter("",locale, pattern);
converter.setLenient(true);
ConvertUtils.register(converter,
java.util.Date.class);

But still beanutils gives this error
" org.apache.commons.beanutils.ConversionException: No
value specified"

when it tries to convert a date which has null as
value.

So how should I handle this.

Thanking You,
Chamal.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message