Over the Internet, or sometimes even in your LAN an AFP, SMB or NFS share can be improper or insecure. However, the JSP development tool Schrödinger from Micromata can share each directory over WebDAV. Read the rest of the hint for the steps to create WebDAV shares...
After a directory is deployed by Schrödinger, Schrödinger creates a file WEB-INF/web.xml. Modify this file with a text editor like this:
<?xml version="1.0" ?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <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> <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> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>Now, after the Web application is restarted in Schrödinger, the directory is available under WebDAV. You can observe each access to the directory in Schrödinger's HTTP Inspector.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030610143727171