format a number using JSTL
843838Mar 16 2006 — edited Mar 16 2006<fmt:formatNumber value="${Form1.map.amount}" type="currency" var="amt"/>
this is returning $10,000,00.00 value.
Want the value 10,000,00.00 i.e without dollar sign. The length of the number might vary.
Similarly,
<fmt:formatNumber value="${Form1.map.interestrate}" type="percent" minFractionDigits="0" maxFractionDigits="2" var="interestrt"/>
is returning 2.45% value.
want the value 2.45 i.e without %.
would like to display the values in the text fields, as I have $ and % symbols before and after the textfield want the formatted value alone.
How can this be done?
Thanks.