velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarkko Viinamäki <>
Subject Re: WebappResourceLoader: ResourceNotFoundException
Date Mon, 19 Jan 2009 18:23:37 GMT


I haven't really verified this but according to JavaDoc VelocityEngine.init
will initialize the engine with default settings (which overrides the
settings that you pass to the constructor). If you pass a Properties object
to the constructor, velocity is already initialized and there's no need to
call init anymore. Another way is to call the empty constructor and then
pass the properties to the init method.

lacco wrote:
> VelocityEngine ve = new VelocityEngine(props);
> ve.init();
> Template t = ve.getTemplate( "my.template.vm" );

View this message in context:
Sent from the Velocity - User mailing list archive at

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

View raw message