Then you are saying that either
<map:generate type="directory" src="////Bambi/store/">
or
<map:generate type="directory" src="\\\\Bambi\store\">
or
<map:generate type="directory" src="file:\\\\Bambi\store\">
or
<map:generate type="directory" src="file:////Bambi/store/">
should work?
But it does not work for me... Did I get that wrong?
Hans
On 8/18/05, Jorg Heymans <[EMAIL PROTECTED]> wrote:
>
> Jonas Lundberg wrote:
>
> > Am I doing something wrong, or does the directory generator not
> > support network drives?
>
>
> In normal java you'ld be able to access the network drive using
> (tested from windows to an SMB share)
> File f = new File("\\\\myserver\\mydir");
> or even
> File f = new File(new URI("file:////myserver/mydir"));
>
>
> The directory generator (or more precisely the SourceResolverImpl)
> resolves both src="\\myserver\mydir" and src="\\\\myserver\\mydir" to
> local path $WEBAPP_ROOT/myserver/mydir whereas
> src="file:////myserver/mydir" is resolved to file://myserver/mydir
>
> This is IMO wrong or at least counter intuitive behaviour given how it
> works in plain java.
>
> You might try and write your own SourceFactory and register a custom
> smb: protocol to get around this, or as Tony suggested just map it to a
> network drive and access it local (AKA "The Easy Way Out" :)
>
>
> HTH
> Jorg
>
>
> ---------------------------------------------------------------------
> 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]