java - Setup web dav with tomcat -
i m looking setup webdav tomcat. m new concept. want war file downloaded. how set wabdav in tomcat. program java
thanks in advance
tomcat comes servlet enables webdav. add following code 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> <init-param> <param-name>readonly</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>allowspecialpaths</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>webdav</servlet-name> <url-pattern>/webdav/*</url-pattern> </servlet-mapping>
the content of application can accessed via:
http://localhost:8080/yourappname/webdav.
be sure enable security constraint servlet.
Comments
Post a Comment