I suggest you NEVER use the backslash character for path delimiters. As
far as I know, C, C++, C# and Java all understand the forward slash as a
path separator, with the benefits of portable code and not having to
quote and re-quote the backslash. Therefore, try something
like //netcomp/shared$/template.vm.

Hope that helps. Best regards.

On Fri, 2007-08-17 at 10:19 -0700, rnon wrote:

> the code:
> Velocity.mergeTemplate("\\\\networkcomputer\\shared$\\template.vm", "UTF-8",
> context, sw);
> gives error: 
> SEVERE: ResourceManager : unable to find resource in any resource loader.
> 
> 
> can someone gives me example of how to use absolute path?
> I'm using velocity 1.5 and I see there's update on FileResourceLoader  class
> that allow usage of absolute path, but I don't know how to use it...
> 
> thank you for the help
> 


-- 
Gonzalo Diethelm
[EMAIL PROTECTED]

Reply via email to