Hey, I am not sure if this is a real problem or if I just have my webapp 
misconfigured... but it looks like there is a problem outside of my config.

I have been trying to setup a test environemnt for SiteMesh.  SiteMesh uses servlet 
filters to apply the decorator pattern to jsp pages... which is very, very cool.

But, I am having throuble getting it to work on urls like http://localhost:8080, 
though it works fine when you go to http://localhost:8080.

It looks like Jetty (or some component working with jetty) is not applying the filter 
that I have set using the following:

    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

I have also tried addind an explicit filter for root:

    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/</url-pattern>
    </filter-mapping>

But it still does not work.

So I checked the 2.3 spec, section 6.2.4 refernces this text:

[the filter]... is applied to all the servlets and static content pages in the web 
application, because every request URI matches the �/*� URL pattern.

So it seems to me that this '/*' pattern should also be applied to 
http://localhost:8080/.

Or am I wrong?  Does anyone know if this is easy to fix inside of the Jetty compnents 
and/or if there is a short-term fix to avoid this bug?

--jason

* * *

View thread online: http://jboss.org/forums/thread.jsp?forum=66&thread=13857

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to