> What you need to do here is something along the lines of the
> following, in your plugin class:
> 
> public Date getSomeDate() {
>   return new Date();
> }
> 
> and in your velocity to template, you'll be able to access this date
> with ${someDate}

Gregory,
You mean $plugin.someDate should refer to getSomeDate in plugin object.
plugin in normally put into the context as I referred before.

> (or $someDate, in this case brackets shouldn't matter, I think). - No
> need for velocity-tools here. (You might want to apply some formatting
> to your date and return it as a String instead, maybe, I'll leave that
> up to you. Also, if you need precision, you'll want to reuse the same
> Date instead, altough i don't expect any plugin to run for more than a
> second  ;))
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to