Two Laptop Bag
The moose likes Other Application Frameworks and the fly likes Spring security : intercept-url not recognizing wildcard Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Spring security : intercept-url not recognizing wildcard" Watch "Spring security : intercept-url not recognizing wildcard" New topic
Author

Spring security : intercept-url not recognizing wildcard

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
I am using spring security and part of the code is below



when trying to access a page inside personsearch or companySearch the authorization is not taking place.

However if I use filename like
faces/jsp/pages/personsearch/search.jsp the interceptor catches it.

I have around 100 pages in my applications, so cannot put entry for each of them.

Is there any better way?

Regards,
Joshua


SCJP,SCWCD, Into ATG now!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

Asterisks are supposed to work. Could it be the Strings you have in there for the urls? Meaning the front part seems odd to me for some reason. ""faces/jsp/pages/"

What happens with just one asterisk? I am always off with how many asterisks are needed and such, I wish it didn't follow ant rules, but the normal standard rules of "*" always being the wildcard.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
Thanks a lot, it worked.

Regards,
Joshua
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring security : intercept-url not recognizing wildcard
 
Similar Threads
AccessDeniedException not going to accessDenied.xhtml
Spring Security different roles and security taglibs
[Spring Security] Unable to load flash file (.swf)
Problem with <security:intercept-url pattern=...>
Spring security intercept-url question