markt 2004/12/20 10:54:14 Modified: catalina/src/share/org/apache/catalina/servlets WebdavServlet.java webapps/docs changelog.xml webapps/webdav index.html Log: Fix webDAV servlet so it can be used via any arbitrary mapping (eg /webdav/*) to edit the contents of a web application - Ported from TC4 Revision Changes Path 1.20 +2 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java Index: WebdavServlet.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- WebdavServlet.java 19 Sep 2004 01:20:10 -0000 1.19 +++ WebdavServlet.java 20 Dec 2004 18:54:13 -0000 1.20 @@ -2004,7 +2004,7 @@ // Generating href element generatedXML.writeElement(null, "href", XMLWriter.OPENING); - String href = req.getContextPath(); + String href = req.getContextPath() + req.getServletPath(); if ((href.endsWith("/")) && (path.startsWith("/"))) href += path.substring(1); else 1.208 +9 -0 jakarta-tomcat-catalina/webapps/docs/changelog.xml Index: changelog.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v retrieving revision 1.207 retrieving revision 1.208 diff -u -r1.207 -r1.208 --- changelog.xml 18 Dec 2004 12:04:40 -0000 1.207 +++ changelog.xml 20 Dec 2004 18:54:13 -0000 1.208 @@ -58,6 +58,15 @@ </fix> </changelog> </subsection> + + <subsection name="Webapps"> + <changelog> + <fix> + Fix the webDAV servlet so it can be used via any arbitrary mapping + (eg /webdav/*) to edit the contents of a web application. (markt) + </fix> + </changelog> + </subsection> </section> <section name="Tomcat 5.5.6 (yoavs)"> 1.2 +13 -0 jakarta-tomcat-catalina/webapps/webdav/index.html Index: index.html =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/webdav/index.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.html 1 Feb 2004 18:25:27 -0000 1.1 +++ index.html 20 Dec 2004 18:54:14 -0000 1.2 @@ -26,6 +26,19 @@ safety reasons. It can be put in read-write mode by editing the web application descriptor file (WEB-INF/web.xml). +<p>To add remote authoring to your web application, you need to make the following +changes: +<ul> +<li>Add the webDAV servlet to your web application. See the web application +deployment descriptor for an example. Don't forget to make it read/write. +<li>Add a servlet mapping for the webDAV servlet with a url pattern of "/webdav/*" +to your web.xml. +<li>Add an appropriate security constraint to prevent unauthorised changes to your +web application. +<li>You can then edit your web application using a webDAV client using a url +like <font face="Courier New, Courier,mono">http://host:port/webapp/webdav</font></li> +</ul> + <p>Working WebDAV clients include : <ul> <li>Adobe GoLive 5.0 (and other WebDAV-enabled Adobe products, like
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]