[opencms-dev] WebDav newbie question

Rudolf Blazek opencms at blazek.net
Fri Apr 10 15:43:26 CEST 2009


Hi List:

I just moved from OpenCms 6.2.2 to 7.0.5 and am testing the WebDav
function. I have some very basic beginner questions:

1. Why am I am I seeing the XML source files (index.html.xml) instead
of the desired content (index.html)?
2. Do I need to reconfigure something? I used the default config as
listed below. I read the docs and the mail list and feel the config is
as instructed...

I want to use an editor for HTML, CSS and JSP files. The XML files are
quite useless to me, I need to edit the content, not the wrapper XML
code. The language can be determined from the properties, so this
should work. Just like when I edit the file in the OpenCms
workplace...

I understand that sometimes the XML source may be useful, but usually
I need the content...

I appreciate any advice. Thanks

Rudy


========================================
web.xml
========================================
   <servlet>
       <description>
           Creates an access to OpenCms through WebDAV.
       </description>
       <servlet-name>OpenCmsWebDavServlet</servlet-name>
       <servlet-class>org.opencms.webdav.CmsWebdavServlet</servlet-class>
       <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>repository</param-name>
         <param-value>standard</param-value>
       </init-param>
   </servlet>

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



========================================
opencms-importexport.xml
========================================
       <repositories>
               <repository name="standard"
class="org.opencms.repository.CmsRepository">
                       <params>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
                       </params>
                       <filter type="include">
                               <regex>/</regex>
                               <regex>/__properties/.*</regex>
                               <regex>/sites/.*</regex>
                               <regex>/system/</regex>
                               <regex>/system/__properties/.*</regex>
                               <regex>/system/galleries/.*</regex>
                               <regex>/system/modules/.*</regex>
                               <regex>/system/workplace/.*</regex>
                       </filter>
               </repository>
               <repository name="extended"
class="org.opencms.repository.CmsRepository">
                       <params>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlPage</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
                               <param
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
                       </params>
                       <filter type="include">
                               <regex>/</regex>
                               <regex>/__properties/.*</regex>
                               <regex>/sites/.*</regex>
                               <regex>/system/</regex>
                               <regex>/system/__properties/.*</regex>
                               <regex>/system/galleries/.*</regex>
                               <regex>/system/modules/</regex>
                               <regex>/system/modules/[^/]*/</regex>

<regex>/system/modules/[^/]*/__properties/.*</regex>
                               <regex>/system/modules/[^/]*/resources/.*</regex>
                       </filter>
               </repository>
       </repositories>



More information about the opencms-dev mailing list