I am using spring mvc and I need to exclude urls from filter-mapping. It means, I have static content like pictures and css and js … and I need to not process these request, for example from security filter. I tried urlrewrite, but I was not able to redirect the urls directly to defaultServlet, which is defined in catalina web.xml. I need to jump over filters, because I have a lot of them. Is there a way? Thanks
EDIT – I thought maybe I could create filter which will if decided jump over other filters and execute the servlet at the end. Is it possible to do that? Thanks
In the end I used:
and url rewrite was defined: