velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: tools 1.4=>2.0 upgrade, configuration question
Date Wed, 25 Feb 2009 14:52:32 GMT
Yes, if you need to programmatically manipulate the VelocityEngine
properties, rather than set them via a file, this
is still the way to go.

You are sure you specified the
property in your init-params?  Can you share your code and config,
perhaps i can spot a mistake that is not obvious to you.   Did you get
any exceptions or log messages?  Make sure your VelocityView subclass
has a constructor that accepts a JeeConfig object.

On Mon, Feb 23, 2009 at 11:04 AM, rhild <> wrote:
> With 1.4 I could override the loadConfiguration method of VelocityViewServlet
> to modify/add properties of the velocity configuration at runtime.  From a
> previous post last year it seems the way to do this now is:
> When I try this approach the MyVelocityView class I created is not used. I
> am setting up the init params for the servlet as indicated.
> Question: Does the link above still represent the best way to accomplish
> what used to be done by overriding loadConfiguration() in
> VelocityViewServlet?  If not, what would you recommend.
> thanks,
> -Ray
> --
> View this message in context:
> Sent from the Velocity - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message