Ahh. Nope.
The <url-pattern> in the servlet mapping should have the value
"/slide/*", not "slide".
Give that a try.
-John
Mark Breitner wrote:
Hi :)
This is what I changed in the web.xml :
1) changed the mapping :
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>slide</url-pattern>
</servlet-mapping
2) changed the default :
<init-param>
<param-name>default-servlet</param-name>
<param-value>false</param-value>
...
is this correct so far ?
mark
--- Ursprüngliche Nachricht ---
Von: John Rousseau <[EMAIL PROTECTED]>
An: Slide Users Mailing List <slide-user@jakarta.apache.org>
Betreff: Re: How to change the path slide is accessible???
Datum: Thu, 14 Jul 2005 11:08:54 -0400
Hmmmm. I'm stumped on that one. You made both changes?
You might want to play with the scope init-param, but I'm just guessing
at this point.
Sorry
-John
Mark Breitner wrote:
Hi,
thanks for your answer but after doing this I can´t access all the
subfolders like "files" any more.
Do you know how to fix this ?
With kind regards
Mark breitner
--- Ursprüngliche Nachricht ---
Von: John Rousseau <[EMAIL PROTECTED]>
An: Slide Users Mailing List <slide-user@jakarta.apache.org>
Betreff: Re: How to change the path slide is accessible???
Datum: Thu, 14 Jul 2005 10:03:44 -0400
Change the web.xml in your app to map the slide servlet to "/slide/*"
instead of "/". You will also need to change the "default-servlet"
init-param to "false" for the slide servlet.
You can then access slide on /slide/* and still have the rest of your
namespace available to your application.
-John
Mark Breitner wrote:
Well, maybe I should just describe what I wanted to do :
I want to use the WCK within an other web application. If I just copy
the
appropriate entries in the web.xml to the web.xml file within my other
web
application my web application isn´t reachable any more.
So I have to find a way to make WCK accessible within my web
application.
Can anyone help me ?
With kind regards
Mark breitner
--- Ursprüngliche Nachricht ---
Von: John Rousseau <[EMAIL PROTECTED]>
An: Slide Users Mailing List <slide-user@jakarta.apache.org>
Betreff: Re: How to change the path slide is accessible???
Datum: Thu, 14 Jul 2005 09:00:06 -0400
Hi Mark,
This is hard to do. The WebDAV server interface is implemented as a
Java
Servlet. Servlets provide several URL path mapping patterns to use.
One
of the most flexible ones is:
/some/path/*
This will allow you to have /slide/anyFoldername URLs, but not the
kind
of URLs you want. Note that the Servlet spec does not allow /*/slide
type patterns. There are no other servlet patterns that will do what
you
want unless you want _all_ requests to go to slide.
Maybe you could modify your model a bit to work with what servlets can
provide (ie. /slide/anyFoldername).
Another approach is to setup your namespace like
/foo/anyFoldername/slide and write a servlet that listens on /foo/*
and
have that servlet dispatch for you.
-John
Mark Breitner wrote:
Hello,
who knows how to change the path the Webdav Construction Kit (WCK)
creates
(http://localhost:8080/slide) into another one, like this :
http://localhost:8080/anyFoldername/slide ???????
Please help me, this is very urgent
With kind regards
M.B.
--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]