Url pattern to exclude javax.faces.resource from being invoked by servlet filter
问题 I have created a servlet filter to handle session timeout and authentication. @WebFilter(urlPatterns={"/acc/*"}) public class ResourceAuthorizationFilter implements Filter { ... } The pages that I want to filter have a pattern like this: /acc/login-flow , /acc/profiles-flow . The filter gets called also for resources(css, js and images). How can I configure the urlPatterns to exclude from filtering these resources? EDIT1 Here are some urls that are filtered: http://localhost:8081/acme-0.0.1