From: Garret Wilson [mailto:[EMAIL PROTECTED] 
> Mark Thomas wrote:
> > If I can get this to work as you expect it to, it should 
> provide a solution for
> > "how do I use webdav to manage my webapp?" - something that 
> is far from easy at
> > the moment.
> 
> I would imagine the solution might also be related to, "how do I use 
> WebDAV and yet keep users far away from my 
> webapp?"---something that is 
> impossible at the moment. In other words, allow the root 
> directory to be 
> configured to an arbitrary file system location.

It is certainly going to be required before the arbitrary root will be possible.

> I'd be glad to start work on this, but it would help to have some 
> details on exactly what I should be looking at. (See my 
> previous post.)

The webdav servlet is based around accessing the file system through a JNDI
DirContext for the current webapp. I haven't looked at this at all but I think
the necessary mods would be something like:
- new param for file system root
- new field for DirContext
- on init, set up the DirContext based on the new param or if the param is null,
use the current method
- replace all the calls that get the DirContext with a reference to the new
field

I have no idea how possible (or not this is) - just some random thoughts on a
Sunday afternoon. Once I have fixed the mapping issue I'll take a look at the
arbitrary root functionality. Enough people have been asking for it that I think
it is worth looking at. Might not have an answer until the new year though. If
you have a chance to look at it in the mean time, let me know how you get on. 

> I just had a terrible experience with the Jakarta Slide WebDAV client 
> library, which has been arbitrarily thrown together.

Worth feeding this experience back to the Slide team if you haven't already.

> (Sorry I had 
> to vent.)

No problem ;) feel like that myself at some point most days. Oddly enough,
software is usually involved somewhere...

Mark



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

Reply via email to