Stuart, I myself had some issues with this recently, when developing
my first Restlet app. However, my app is "standalone", i.e. it doesn't
use the Servlet adapter to run inside a Servlet Server, it uses one of
the included extensions to embed an HTTP server. I think that may make
a big difference in how to reference templates, so I'm not sure my
experience/setup would be helpful for you. If you'd like, though, I'd
be happy to share. Hopefully someone will have some advice for your
specific situation.

--
Avi Flax
Lead Technologist
arc90 | http://arc90.com

On 7/2/07, Stuart Owen <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to use the TemplateRepresentation for the Velocity extension as part
of a webapp, but I am having problems configuring the template location. The API
docs for TemplateRepresentation species that only the template name is required
and the full path is resolved by the configuration.
I've tried setting webapp.resource.loader.path=/templates/ within my
WEB-INF/velocity.properties, which works for the VelocityViewServlet, but
doesn't appear to be picked up by Restlet.

So any advice on how I configure restlet to use my velocity.properties within a
webapp?

thanks,
Stuart

Reply via email to