velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: velocity tools init
Date Tue, 15 Mar 2005 15:51:21 GMT
"Charles N. Harvey III" <charlieh@alloy.com> wrote:
> Quick question about some of the Velocity Tools.  How come the Struts
> Tools and View Tools implement ViewTool and have an "init()" method
> but the generic tools do not?  How do they actually get initialized?
> Do I have to just do new DateTool() and it works?  It seems like it, but
> I just wanted to double check.

Yep.  Tools are plain old java objects.

The view tools have to be init'd because they need to be set up with 
references to the servlet.

-Mike

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