This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Spring and the fly likes @Secured Annotation Not Working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "@Secured Annotation Not Working" Watch "@Secured Annotation Not Working" New topic
Author

@Secured Annotation Not Working

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1114
I have a method in a @Controller where I ONLY want that method to execute if the user role="ADMIN".

This method handles the POST from a JSP as shown below.



The problem is that, regardless of the user role, the code in the method executes!

I've tried adding an additional point-cut to the security context file for that @Controller class, but that didn't work either.

Look forward to any suggestions.

Thanks,

mike

 
Have you checked out Aspose?
 
subject: @Secured Annotation Not Working
 
It's not a secret anymore!