Hi Nathan,
Thanks, ClassPathResourceLoader does the job.
a.c.

Nathan Bubna wrote:
> 
> If you need to access templates (aka vm files) from within a webapp,
> you should use the WebappLoader provided as part of the VelocityTools
> project.  Velocity itself (and especially the FileResourceLoader,
> which is the default resource loader) is completely clueless about
> webapps.
> 
> If you have some opposition to using the webapp support in
> VelocityTools and really insist on just using plain Velocity itself,
> then you will probably want to use the ClasspathResourceLoader and put
> your templates in the classpath.  The FileResourceLoader is really not
> meant to be used with webapps.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/template-in-a-Tapestry-5-app-tp14833725p14873593.html
Sent from the Velocity - User mailing list archive at Nabble.com.


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

Reply via email to