velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: static method calls...
Date Sat, 04 Sep 2004 11:36:31 GMT
Hi Kanna,

> In a velocity template, can I make a static method call on a Class?
> 
> For example:
> ViewEditor.toDate($transfer.getTransferDate(), DATE_FORMAT)
So long as you set an /instance/ of it in the context, yes.

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai(shinobu.kawai@gmail.com)

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