There is a parameter, scope, which can be used to
map the user into a subdirectory.  Search on 
"Setting a relative path for the webdavservlet"
and see the Nov 1 post by Raj Kumar.

However, I suspect that if you are integrating
this into another web app this will no do what
you want.  You will still want to map other
urls to your app.

I tried to do this by mapping a path like 
/share to WebDav.  Like you this gave only
partial results.  I found that this is due
to the code in DefaultServlet and WebdavServlet
which assumes that they are mapped to the root.
Changing the line in DefaultServlet.getRelativePath()
from 
   String path = getRelativePath(request);
to
   String path = request.getRequestURI().substring(
      request.getContextPath().length());
corrects this for most operations.  There are still
similar issues with copy/move in WebdavServlet which I
didn't go into.

I tried to get some response on this issue here
(no answers) and in slide-user where some of the
WebDAV people hang out.  I did get one developer
response, but basically "not interested".

Too bad.  Like you, I think other people would
like to integrate WebDAV into their apps, but 
this makes it pretty much impossible. 

The developer suggested I use a separate web 
app and/or map the docbase, but this is no
good since my app also needs to serve up some
of the .jsp and .html files that will be 
WebDAV'd up.

There are further problems trying to .include
any files from WebDAV.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



> -----Original Message-----
> From: Jan Wrang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 4:10 AM
> To: [EMAIL PROTECTED]
> Subject: Integrating Slide into another webapp
> 
> 
> Hi,
> 
> I want to integrate Slide into another webapp which consist 
> of several other components along with slide.
> 
> Initially I've set slide as the default servlet and mapped 
> the servlet to /   Everything works perfect :-)
> 
> Then I set the default mapping to false and change the 
> mapping to /share/   Now my windows 2000 will not let my 
> connect to my webfolder
> The error is "Folder not found - please select another" :-(
> 
> Then I try changing the servlet mapping to /share  Now I can 
> connect :-) but now I get an error every time I try to PUT or 
> GET a file ?
> 
> My set-up is RH 7.1 with Apache + Resin + Mysql
> 
> Any help appriciated,
> 
> Jan Wrang
> 
> 
> 
> 
> 
> 


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

Reply via email to