cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject RE: problem with the sitemap and patterns
Date Fri, 13 Dec 2002 08:59:34 GMT
Well, maybe what I supposed to know about pipelines and matchers is 
wrong, but ...

<map:match pattern="mysite/**">
  <map:mount check-reload="yes" reload-method="synchron" 
src="mysite/sitemap.xmap" uri-prefix="mysite"/>

and the mounted pipeline is something like:
<map:match pattern="index.html">
  <map:read src="index.html"/>
<map:match pattern="dir1/dir2/index.html">
  <map:read src="index.html"/>
  <map:transform src="error.xsl"/>
  <map:serialize type="html"/>

Now, if I call
it works

but if I try
I get the well known white page with the blu header "Cocoon 2 - 
Resource not found",
while I expected to find my custom error page.

Coccon processes a request which begins with "mysite" and, according to 
the "2 asterisks rule", the mounted pipeline is executed.
But there isn't a pattern that matches the request, an error occurs.
So why my custom handler isn't processed?

Where I'm wrong?

Cocoon 2.0.3 - Tomcat 4.1.12 - j2sdk1.4.0 - Win2k server


> Nice guess, but three asterisks is not defined.  mysite/** will match
> literally everything after the slash.  If you need to seperate out the
> extension, you can do mysite/**.* (the values will be stored in {1} an
d {2})
> but then you have to have a .XXX request.  If you will only sometimes 
have a
> .XXX match, you need to either split the pipeline into two different o
> or use a regexp matcher (which may not be defined in the default sitem
> Geoff Howard

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message