velocity-user mailing list archives

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

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: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message