You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Asme <4b...@gmail.com> on 2013/07/08 19:24:18 UTC

How to filter [urls ]using package and not folder with Apache Shiro

Is it possible to use servlets's package name instead of JSP's folder to
filter specific page?

Actually, i can filter the access to all JSP pages inside a given folder but
what I want is to filter some servlets's urlPatterns.

example: let's suppose I have *Servlet1* and *Servlet2 *inside the package
*com.myProject.controller*:
can I use something like this to filter the urlPatterns of these Servlet:

*    [urls]  
    /login.jsp = authc
    /logout = logout 
    /com.myProject.controller/** = user, roles[admin]*





--
View this message in context: http://shiro-user.582556.n2.nabble.com/How-to-filter-urls-using-package-and-not-folder-with-Apache-Shiro-tp7578896.html
Sent from the Shiro User mailing list archive at Nabble.com.