velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: Loading templates from classpath
Date Fri, 01 Apr 2005 17:47:26 GMT
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


Mime
View raw message