i don't want use the nighty build instead as you suggested to extend the ActionServlet i am doing that.
Thanks a lot for the help
Usha..
Brian Lee wrote:
This has been fixed in the latest nightly build. If you specify convertNull=true as an init param in your web.xml for the ActionServlet, it will default the BigDecimal form property to null instead of trying to create a new BigDecimal(null)- which throws a ConversionException.
If you can't get the nightly build, you'll need to extend ActionServlet and create an init() method that contains these lines:
super.init();
ConvertUtils.register(new BigDecimalConverter(null), java.math.BigDecimal.class);
This should work for you.
BAL
From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bigdecimal conversion error : urgent
Hi
when i am copying the null value to the bigdecimal field it gives the error like following. i read that we need to set the usedefault to true. where i need to set the default value to true.
org.apache.commons.beanutils.ConversionException: No value specified
at org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148)
at org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265)
Thanks
usha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]