commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radhika Menon" <radsfor...@lycos.com>
Subject fmt:formatNumber to format currency does not display negative amounts
Date Tue, 19 Aug 2003 16:09:28 GMT
Hi,
The jstl tag <fmt:formatNumber> to format currencies,
displays the absolute value for negative amounts.
For eg: if the amount is -100.00, it gets displayed as (100).
Is there anyway to prevent this behaviour?
I used the fmt tag as follows :
<fmt:formatNumber type="currency" value="${requestScope['selectedLease'].elcoCost.decimalAmount}"
currencySymbol=""/>
Appreciate any help/suggestions on this.

Thanks
Radhika



____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

Mime
View raw message