excludes again
Marc Logemann <[email protected]> Tue, 03 May 2005 16:44:17 +0200
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i am getting crazy with the excludes mechanism. The irony of it, it
worked for me a few days ago and now i cant get it to work at all. Must
be something trivial. I want to exclude this URL:
http://localhost:8080/Netversys/pda.html
and everything below .../pda/
here is my excludes file (i created a seperate file because i thought
inlining could be a potential problem, but this seems not true):
<decorators>
<excludes>
<pattern>/pda/*.html</pattern>
<pattern>/pda.html</pattern>
</excludes>
</decorators>
I also tried patterns like: /*/pda.html
My general decorators.xml look like this:
<decorator name="default" page="default.jsp">
<pattern>*.html</pattern>
</decorator>
And sitemesh.xml:
<sitemesh>
<property name="decorators-file" value="/WEB-INF/decorators.xml"/>
<property name="excludes-file" value="/WEB-INF/excludes.xml"/>
<excludes file="${excludes-file}"/>
...
</sitemesh>
I have created my own decoratorMapper (basically a copy of
ConfigDecoratorMapper) to better understand the inner workings but i
cant see any exclude processing, i ve searched in PathMapper.java and
the likes.
How can i debug this scenario? PathMapper allways returns my decorator
of course because it maches the html suffix, but it doesnt reflect the
exclusion list.
Thanks for ideas how to tackle that problem.
-
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]