Velocity, cannot find resource
I have been fighting with Velocity for a day now. I think I have read every google page I found. Can anyone help?
I am using this in a web app. I have a template just under the /web/ directory and it cannot find it. It shows the actual path when I print it to the console but alas I am stumped.
Getting this error.
org.apache.velocity.exception.ResourceNotFoundExce ption: Unable to find resource 'testTemplate.vm'
Properties p = new Properties();
p.setProperty( "file.resource.loader.path", "/web/");[COLOR="MediumTurquoise"]//I have tried a lot of things here in this line[/COLOR]
VelocityContext context = new VelocityContext();
template = Velocity.getTemplate(templateName);