Re: webdav servlet file path; documentation

2004-11-29 Thread Garret Wilson
Mark,
Thanks for giving me a place to start. I've had a half-our glance at the 
source code; let me know if I'm going in the right direction.

Doesn't this simply entail making sure that the ProxyDirContext 
resources object created in DefaultServlet has the correct file system root?

Would that have anything to do with the vPath of a wrapped ProxyDirContext?
I'll look into this more in a couple of days. (I've noticed that others 
have requested this same feature.)

Garret
Mark Thomas wrote:
From: Garret Wilson [mailto:[EMAIL PROTECTED] 
I can't imagine why this wouldn't be a simple change to the Tomcat 
WebDAV code---probably just five or ten lines. You start with a file 
system base directory right? Just get it from the context parameter.
Not quite that simple ;)
I'll gladly take a look at the code---can you tell me where to start?
org.apache.catalina.servlets.WebdavServlet
I'd be happy to look at anything you come up with.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: webdav servlet file path; documentation

2004-10-02 Thread Mark Thomas
From: Garret Wilson [mailto:[EMAIL PROTECTED] 
 
 Something like this:
 
 Context docBase=C:\webapps\mywebapp.war
Parameter name=webdavBase value=C:\data\mywebappdata\/
 /Context

This should be a parameter of the webdav servlet rather than a context one.

 I can't imagine why this wouldn't be a simple change to the Tomcat 
 WebDAV code---probably just five or ten lines. You start with a file 
 system base directory right? Just get it from the context parameter.

Not quite that simple ;)

 I'll gladly take a look at the code---can you tell me where to start?

org.apache.catalina.servlets.WebdavServlet

I'd be happy to look at anything you come up with.

Mark



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



Re: webdav servlet file path; documentation

2004-09-25 Thread Garret Wilson
Garret Wilson wrote:
By default the servlet accesses the file system inside the web context. 
(That is, a servlet mapped to /context/webapp/* will show files in 
/context/webapp/ .)
Ack! Apparently the servlet will allow access to files in /context/ , 
which is much worse?

3. How do I map the servlet to an absolute file on the server machine?
(I meant directory of course.) This question is even more important, 
now...

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