velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AngeloChen960 <>
Subject Re: template in a Tapestry 5 app
Date Wed, 16 Jan 2008 08:25:12 GMT

Hi Nathan,
Thanks, ClassPathResourceLoader does the job.

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:
Sent from the Velocity - User mailing list archive at

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

View raw message