I want to exclude a certain file, "*/SlideMenu.js", from a filter. Can I do it?

Eelco Cramer

    <filter-mapping>
        <filter-name>GZIPFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>GZIPFilter</filter-name>
        <url-pattern>*.js</url-pattern>
        <!--<exclude-pattern>*/SlideMenu.js</exclude-pattern> -->
    </filter-mapping>

In the example above, I have a fictitious tag "exclude-pattern" that would exclude */SlideMenu.js from the filter mapping.

What is the proper way to do it?
------------
There is no way to exclude files from an url-pattern. You could change your mapping strategy or change the extension of the file you want to exclude (not so nice). You could configure your filter to not process certain files.

Good luck.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact