lundi 24 avril 2017

Filter's doFilter not invoked

I have in web.xml

 <filter id="Filter_1">
        <filter-name>LoginFilter</filter-name>
        <filter-class>Controllers.LoginFilter</filter-class>


    </filter>

    <filter-mapping>
        <filter-name>LoginFilter</filter-name>
        <url-pattern>/j_security_check</url-pattern>
    </filter-mapping>

when I write "/*" instead of "/j_sequrity_check" in url-pattern, the LoginFilter is called but when I do /j_sequrity_check, filter is not called at all. init and destroy are getting called without any problem.




Aucun commentaire:

Enregistrer un commentaire