Use org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader as a
loader (eventually among other loaders) and specify the library as a
relative path to the root of the classpath (with slashes, of course).
It works for me (and the library comes from a jar in WEB-INF/lib)

Florin

----- Original Message ----- 
From: "Vincent van Beveren" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[email protected]>
Sent: Friday, February 18, 2005 12:08 PM
Subject: velocimacro.library


> Is there any way to specify a resource at the "velocimacro.library"
> instread of a file? I would
> like to use a velocimacro from a resource instead of a file? I couldn't
> find any way using the
> configuration.
>
> Thanks,
> Vincent
>
> -- 
> XIAM Solutions B.V.
> Barchman Wuytierslaan 72A
> 3818 LK AMERSFOORT
> tel. : +31(0)33 462 40 07
> e-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
>
> WAARSCHUWING:
> Dit bericht is UITSLUITEND bestemd voor de (rechts)perso(o)n(en) aan welke
het bericht is gericht. Het kan vertrouwelijke of alleen voor deze
rechts)perso(o)n(en) bestemde informatie bevatten, die niet mag worden
geopenbaard. Als dit bericht niet voor u bestemd is, mag u de ontvangen
informatie niet lezen, gebruiken, verspreiden of kopi�ren. Als u dit bericht
per abuis heeft ontvangen, gelieve het bericht dan te vernietigen en contact
op te nemen met de afzender.
>
> WARNING:
> This message is intended ONLY for the person(s) or entity to which it is
addressed and may contain confidential and/or privileged information, the
disclosure of which is prohibited. If you are not the intended recipient you
may not read, use, disseminate or copy the information transmitted. If you
have received this message by mistake, please contact the sender and delete
the material from any computer.
>
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14-2-2005
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to