velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: Formatting numbers
Date Fri, 10 Oct 2003 13:37:21 GMT
"Anthony E. Carlos" <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message