C
compaqr4000
In my jsp form I want to format a variable from something like
235522455 to 235,522,455
I am trying to format it with DecimalFormat as follows:
DecimalFormat dfThou = new DecimalFormat("###,###");
<td class="info"><bean:write name="infoForm" property="<=%
dfThou.format(infoValue(pop).value) %>"/></td>
which obviously does not work.
Here is the line prior to my formatting attempt:
<td class="info"><bean:write name="infoForm"
property="infoValue(pop).value"/></td>
Can anyone help with the syntax?
Thanks!
Kay
235522455 to 235,522,455
I am trying to format it with DecimalFormat as follows:
DecimalFormat dfThou = new DecimalFormat("###,###");
<td class="info"><bean:write name="infoForm" property="<=%
dfThou.format(infoValue(pop).value) %>"/></td>
which obviously does not work.
Here is the line prior to my formatting attempt:
<td class="info"><bean:write name="infoForm"
property="infoValue(pop).value"/></td>
Can anyone help with the syntax?
Thanks!
Kay