• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Format a int in a decimal

 
Marco Vanoli
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have a integer for example 12345.
In my JSP i have to render this value as 123,45

I have to use the struts beans:
<bean:write name="ratingBean" property="importoCapitaleF" format="#,###.##"/>
but i cannot do it..

Someone can help me?
Tnx
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "I cannot do it"? What happens when you try the above code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic