formatting a number using JSTL, using struts also
843838Jan 23 2006 — edited Jan 23 2006would like to display the value of property amount as $10,00,000. tried using the below.
But getting an error/ it doesn't get displayed.
Is this the way to do this. Or is there an better way to do the same?
<td>
<bean:define id="amt"><html:text name="Form1" property="amount" styleClass="invisibleInput" readonly="true" tabindex="-1"/></bean:define>
<% System.out.println(amt);%>
<fmt:formatNumber value="${amt}" type="currency"/>
</td>