> See inline: > > 03.12.2001 17:21:21, "Frank Lawlor" <[EMAIL PROTECTED]> wrote: > >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. > > Slide's WebdavServlet has a init-parameter named 'default-servlet' > which you need to set to 'false' if the servlet isn't mapped > to the root. Then all path-mappings should work (I've used that mode > quite a lot in the past).
Yes, that's the safest way to solve these path problems IMO. Remy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
