Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

formatting a number using JSTL, using struts also

843838Jan 23 2006 — edited Jan 23 2006
would 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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2006
Added on Jan 23 2006
3 comments
166 views