Search |
||
Enabling WebDav in GlassFishPosted by jfarcand on March 20, 2006 at 12:06 PM PST
It is very easy to enable WebDav in GlassFish, but you can't enable it the way you usualy do it using Tomcat. The reason is when you define, in defaul-web.xml, the WebDav servlet, you can't protect it because GlassFish lack of support for a default-sun-web.xml, where you usualy define your security constraints mapping. You certainly don't want to enable WebDav without protecting the functionality with a security constraint, because if not protected, then everybody will be able to make modification to your content. First, enable the WebDav Servlet in your web-xml:
Then define the servlet mapping associated with your WebDav servlet:
You are now ready to use any WebDav client by doing connecting to:
As an example, I did using Office 2003:
and changed the index.html page. Next step is to protect the WebDav support because everybody can now make modifications to your content:
and then define, in your sun-web.xml:
Next, create you user and password.
You are now ready to use WebDav with GlassFish »
Related Topics >>
J2EE Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|