velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: VelocityEngine...
Date Thu, 04 Dec 2008 17:50:47 GMT
I guess Carlo is trying to obtain an instance of Velocity...

Carlo, you can use the static class org.apache.velocity.app.Velocity
(singleton model), or instanciate an instance of
org.apache.velocity.app.VelocityEngine.

In both cases, it must be initialized via oneof the init() methods.


  Claude

On jeu, 2008-12-04 at 09:44 -0800, Nathan Bubna wrote:
> The VelocityManager class is a part of WebWork, not Velocity.  So, i
> don't see how the Velocity version is relevant here...
> 
> On Thu, Dec 4, 2008 at 9:21 AM, carlo latasa <clatasa@gmail.com> wrote:
> > On Thu, Dec 4, 2008 at 9:19 AM, carlo latasa <clatasa@gmail.com> wrote:
> >
> >> So in the webwork 1.x code I have, there's a subclass of the velocity
> >> runtime Directive class that has some code like the following:
> >>
> >>     VelocityEngine velocityEngine =
> >> VelocityManager.getInstance().getVelocityEngine();
> >>     Template template = velocityEngine.getTemplate(templateName);
> >
> >
> > however it looks like you can no longer get the velocityengine from the
> > velocitymanager. How would I do this now using Velocity 1.5?
> >
> > (Sorry for the last partial post)
> >
> > Carlo.
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message