velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: velocity tools init
Date Tue, 15 Mar 2005 15:51:21 GMT
"Charles N. Harvey III" <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message