You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Frank Taffelt <fr...@interface-business.de> on 2002/05/31 16:49:32 UTC
Matcher and Mismatcher
Hello,
suppose i have the follwing request: "/cocoon/css/style.css" cocoon logs the
following substitutions:
CONTEXT PATH: /cocoon
SERVLET PATH: /css/style.css
for this request i have the following match in my sitemap:
<map:match pattern="**/css/*.css">
<map:read mime-type="text/css" src="resources/css/{2}.css"/>
</map:match>
it seems that this pattern never matches the given request, access.log says
:
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
/css/style.css
The cocoon documentation states about matching: " ... A string made of two
asterisks ('**') matches zero or more characters, this time including the
path separator (the character '/'). ..." .
In my understanding this includes also the request "/css/styles.css" because
the zero match.
I'm using Cocoon Release 2.0.2
thanks,
frank
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Matcher and Mismatcher
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Frank Taffelt [mailto:frank.taffelt@interface-business.de]
>
> Hello,
>
> suppose i have the follwing request: "/cocoon/css/style.css" cocoon
logs the
> following substitutions:
> CONTEXT PATH: /cocoon
> SERVLET PATH: /css/style.css
>
> for this request i have the following match in my sitemap:
>
> <map:match pattern="**/css/*.css">
This won't be matched because for this request URL passed to the matcher
from the sitemap is 'css/style.css' - note that there is *no* leading
'/' here.
Vadim
> <map:read mime-type="text/css" src="resources/css/{2}.css"/>
> </map:match>
>
> it seems that this pattern never matches the given request, access.log
says
> :
> org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request:
> /css/style.css
>
> The cocoon documentation states about matching: " ... A string made of
two
> asterisks ('**') matches zero or more characters, this time including
the
> path separator (the character '/'). ..." .
>
> In my understanding this includes also the request "/css/styles.css"
because
> the zero match.
> I'm using Cocoon Release 2.0.2
>
> thanks,
> frank
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>