double to String using indexed property in html:text and iterator
0 posts in topic
Flat View  Flat View

Posted By:   jane_leonard
Posted On:   Wednesday, September 15, 2004 06:46 PM

I am using the indexed property of html:text as follows:


numberOfPieces is a double. But when I display the value, I do not want to show it as a double (want to show 23 instead of 23.0). I cannot change the type from double to int in the class since it is used by a number of other classes outside our app. I also want to try to avoid creating another class with the String or int value and show it. How can I convert to String or an int in the JSP?

Thanks in advance for your suggestions.
About | Sitemap | Contact