I wrote a Java web filter to handle my JSF application security. I have a filter mapping as follows:
<filter-mapping> <filter-name>authFilter</filter-name> <url-pattern>/secure/*</url-pattern> <url-pattern>/login.jsf</url-pattern> <url-pattern>/*.js.jsf</url-pattern> <--- invalid pattern </filter-mapping>
and now I want to create a url template to filter all javascript files. I use Primefaces, so .js files are extracted at the following URLs:
http:
I can not filter all javax.faces.resouces
because it also contains CSS files. Is there a way to create a URL pattern to match only javascripts?
source share