I've used Cocoon before and the sitemap.xmap file controls all. The welcome-file setting in web.xml won't do anything here. If you write a <map:match> element to match pattern="**/" (possibly pattern="/" also), it should effectively define the default page for all folders. I'd recommend asking these questions on the Cocoon list and and reading the copious docs in the default sitemap.xmap file that comes with Cocoon.

--David

Caldarale, Charles R wrote:

From: Kor Kiley [mailto:[EMAIL PROTECTED] Subject: Re: Switching default index page from xml to xql

Here's the web.xml for eXist:

   <!--
       Cocoon handles all the URL space assigned to the webapp using
its
       sitemap. It is recommended to leave it unchanged. Under some
       circumstances though (like integration with proprietary
webapps or
       servlets) you might have to change this parameter.
   -->
   <servlet-mapping>
       <servlet-name>Cocoon</servlet-name>
       <url-pattern>/</url-pattern>
   </servlet-mapping>

   <welcome-file-list>
       <welcome-file>index.xql</welcome-file>
   </welcome-file-list>

This appears to remap everything to Cocoon rather than Tomcat's default
servlet; I wonder if Cocoon is ignoring the welcome-file list?  I've
never used Cocoon - does it have a different way of configuring welcome
files?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to