velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: Formatting numbers
Date Fri, 10 Oct 2003 13:37:21 GMT
"Anthony E. Carlos" <anthony@digitalphenom.com> wrote:
> I've checked the docs and found a tool for arbitrarily formatting 
> dates. Is there one for formatting numbers, or must I format the number 
> first then pass the formatted String to velocity?
> 
> I'm using Struts and want to simply put Value Objects into the session 
> or request and have Velocity do the formatting...

I recommend cloning the DateTool code in order to create a NumberTool, then 
submitting that class back to the toolbox developers.

I will be wanting a NumberTool myself soon, but I haven't quite reached that 
stage yet.

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message