Kevin Jackson wrote: > Hi, > > I need to extend the webdav servlet so that I can store files outside > of the application context. > > Looking at the source for the servlet I think getRelativePath and > (perhaps normalize) need to be changed.
It will be much more invasive than that. The WebDAV servlet extends the DefaultServlet which in turn uses a ProxyDirContext object to access files. Unpicking this would require a lot of changes. Better options are: - Slide - Use a sub-context (more below) Assuming you have $CATALINA_HOME/webapps/yourapp and /some/other/path/webdavroot and you want /some/other/path/webdavroot editable via http://host/yourapp/edit then place a file called yourapp#edit.xml in $CATALINA_HOME/Catalina/localhost with the following contents: <Context docBase="/some/other/path/webdavroot" > </Context> You will need to add WEB-INF/web.xml to /some/other/path/webdavroot and place the WebDAV servlet definition in the web.xml file. This is more of a users list question, so please ask any follow-ups there. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]