File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Format a int in a decimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Format a int in a decimal" Watch "Format a int in a decimal" New topic
Author

Format a int in a decimal

Marco Vanoli
Ranch Hand

Joined: Jan 12, 2005
Posts: 99
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


bye, <br />Marco
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61195
    
  66

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
What do you mean by "I cannot do it"? What happens when you try the above code?


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Format a int in a decimal