Velocity Question

2005-07-05 Thread Vinicius Caldeira Carvalho
Sorry for the OT. But since they're kinda related ... Does velocity provides a way to fill gaps on my variables? Translating... I have a pojo car, which has ID and Name Id must have size 6 with zero left padd, and Name 15 with with white spaces padding. Now let's suppose I have: Car beetle = new

RE: Velocity Question

2005-07-05 Thread Nitesh Naveen
List Subject: Re: Velocity Question HI! I´m not sre what you mean... but StringUtils is not an abstract class, so you could put in the context of Velocity an instance of StringUtils velContext.put(StringUtils, new StringUtils() ); In your template... $StringUtils.leftPad( $car.id, 6, '0