Hi

If you had searched the list, you would have found my posting on this. Anyway, 
what you have to do is in the web.xml filtermapping for Shale do this

comment this:
        <!-- Shale Application Controller Filter Mapping -->
        <!--
        <filter-mapping>
                <filter-name>shale</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
        -->

add this:
        <!-- Shale Application Controller Filter Mapping -->
        <filter-mapping>
                <filter-name>shale</filter-name>
                <url-pattern>*.xml</url-pattern>
        </filter-mapping>

        <filter-mapping>
                <filter-name>shale</filter-name>
                <url-pattern>*.html</url-pattern>
        </filter-mapping>

        <filter-mapping>
                <filter-name>shale</filter-name>
                <url-pattern>*.faces</url-pattern>
        </filter-mapping>

Hermod

-----Original Message-----
From: Richard Wallace [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 6:46 PM
To: Struts Users Mailing List
Subject: [shale] Images and css being rejected


I'm having a problem with pages loading images and css files.  I turned 
up the debugging on log4j and when the css files and images are 
requested by the browser nothing is returned.  I checked the logs and 
they're saying:

 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/styles/mpl.css)
2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)
2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif)
2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)
2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif)
2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)

I looked through all the configuration files and found in the 
chain-config.xml:

      <command 
className="org.apache.shale.application.ContextRelativePathFilter"
               
includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp"
               excludes="\S*\.jsp,\S*\.jspf"/>


I added \S*\.css to the includes with no change.  I tried to comment 
this out as well, so nothing would get filtered, with no luck.  Any 
ideas what I'm missing this time?

Thanks,
Rich

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to