Setup

Tomcat comes prebundled with a WebDAV Level 2 servlet. To enable, add the following to web.xml:

<servlet>
  <servlet-name>webdav</servlet-name>
  <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
  <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
  </init-param>
  <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
  </init-param>

  <!-- The following for read-write access -->

  <init-param>
    <param-name>readonly</param-name>
    <param-value>false</param-value>
  </init-param>
</servlet>

<servlet-mapping>
  <servlet-name>webdav</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

Of course, you can set the url-pattern to make the content editable from a different URL. Also, be sure to secure access appropriately to the editing URLs.

Webdav information and solutions


CategoryFAQ

Tomcat/WebDav (last edited 2010-03-28 16:01:07 by KonstantinKolinko)