"/abc.txt" works fine

I didn't do anything at all with FileResourceLoader , 
how can I configure FileResourceLoader ? can someone post an example..

thank you


Will Glass-Husain-2 wrote:
> 
> Did you configure the FileResourceLoader with a path?  If so, you
> shouldn't.
> 
> I've never tried this with a UNC style path.  Does something simple like
> "/abc.txt" work?  (should retrieve c:\abc.txt).
> 
> Also, you may get better support on the user list.  I'm responding to that
> list.
> 
> WILL
> 
> On 8/17/07, rnon <[EMAIL PROTECTED]> 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
>>
>> --
>> View this message in context:
>> http://www.nabble.com/absolute-path-for-template-file-tf4287074.html#a12203692
>> Sent from the Velocity - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Forio Business Simulations
> 
> Will Glass-Husain
> [EMAIL PROTECTED]
> www.forio.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-absolute-path-for-template-file-tf4288057.html#a12207394
Sent from the Velocity - User mailing list archive at Nabble.com.


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

Reply via email to