Hi.

I'm a novice Velocity user and I'm trying to use it in a web project.
The program runs on Tomcat 5.5.12 and J2SE 1.5.0.

I've tried to use the Velocity File and Classpath Resource Loaders, with no success at all.
Either way, I always end up with the following error:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'whatever/path/i/try/template.vm'

The documentation is very superficial in that subject and what I'd like to know is how to load and use a Velocity template in a class runing inside Tomcat container, from:

1. a template file inside /WEB-INF/ directory of my web application.

2. a template file inside a JAR in /WEB-INF/lib/ of my web application.

Thanks in advance,

Renato Augusto.

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

Reply via email to