Hi seba,
> I am in the following situation: I'm running a Velocity servlet in
> Jetty, and everything works fine until I load the template (which
> Velocity can't found). I would like getTemplate() to load the template
> from the classpath (i.e., from the jar file), so to have a completely
> self-contained application. I think this is possible using a classpath
> loader, but after a lot of reading a couldn't find a single example (and
> exploring all possibilities is daunting).
>
> I would be immensely grateful to anybody pointing me at a code snippet
> that shows how to do it...
What have you tried so far? Let's start from there.
Some documents you might want to read:
http://jakarta.apache.org/velocity/developer-guide.html#Resource%20Loaders
http://jakarta.apache.org/velocity/api/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.html
http://issues.apache.org/bugzilla/show_bug.cgi?id=22419
http://issues.apache.org/bugzilla/show_bug.cgi?id=31703
Best regards,
-- Shinobu
--
Shinobu Kawai <shinobu.kawai@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
|