Claude Brisson said:
> I don't think so, because the default resource loader used by the VVS is the
WebappResourceLoader,
> which uses the method ServletContext.getResourceAsStream( ).

correct.

> I'm afraid this is hardcoded... (but how to bypass the defaults defined in
the core ?)

you override the defaults by specifying your own resource loader(s) in your
velocity.properties file.

> But it can be subclassed to use the ClasspathResourceLoader (or even both
loaders).

no need to subclass.  the VVS gives priority to your velocity.properties by
loading them after setting the defaults.  so you can use any of the other
resource loaders (classpath, jar, file, url, whatever) without subclassing.

> Claude
>
> ----- Original Message ----- 
> From: "Tim Colson" <[EMAIL PROTECTED]>
> To: "'Velocity Developers List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 18, 2004 3:08 AM
> Subject: VelocityViewServlet and Jar resources?
>
>
> > Say, will VelocityViewServlet automagically pull in templates & macros
from
> > a JAR dropped inside WEB-INF\lib?
> >
> > Timo

Nathan Bubna
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to