aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
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: 17257
    
    6

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
 
jQuery in Action, 2nd edition
 
subject: Spring security : intercept-url not recognizing wildcard