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 <[EMAIL PROTECTED]> wrote:
> > On Thu, Dec 4, 2008 at 9:19 AM, carlo latasa <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to