Florent Souli�re wrote:
> OK, I have news with my problem: http://localhost:8080/examples/cocoon
> works fine, actually, but every other URL in the form
> http://localhost:8080/examples/cocoon/foobar seems to be resolved by
> Tomcat instead of Cocoon with its sitemap!!! So for every request I
> get "Apache Tomcat/4.0.1 - HTTP Status 404".
> How can I force Cocoon resolving in place of Tomcat's???
> I thought that a servlet mapping with the URI "/cocoon" was enough...
> but apparently not!
You need an explicit rule in the sitemap that matches completely the
substring of the URL that is after the context name.
Something like
<map:match pattern="**">
<map:read src="{0}" type="text/html/>
<map:match>
For that you will probably use wildcards (* and **).
Have a look at the default sitemap for an explanation.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>