velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: [Vel-Tools] Converting a long return type into a formatted Date
Date Thu, 06 Jan 2005 22:22:28 GMT
yeah, my understanding is that it is a function of java reflection
itself, rather than an intentional thing done by Velocity.  but i
could be wrong...

On Thu, 06 Jan 2005 15:39:53 -0500, Mike Kienenberger
<mkienenb@alaska.net> wrote:
> Nathan Bubna <nbubna@gmail.com> wrote:
> > in VTL, long and Long are the same.  have you tried just using
> > DateTool.toDate(Long) with the long?
> 
> Just tried it, and it works fine.
> 
> I didn't realize that primitive types would convert like that inside nested
> method calls.  I figured (wrongly) that primitive-to-object conversions
> would only take place on the outer-most call when the value was actually
> rendered.
> 
> Thanks!
> 
> -Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
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