Hi All,
I'm currently writting a spring 3 security app with jsf2.
I have setup my applicationContext_security.xml that contains:-
I have one of service method that I guard as follows:-
@RolesAllowed({"PERM_MY_1"})
public abstract Bike getBike(Integer id);
How do I get the accessDenied.xhtml page to be displayed if the user does not have PERM_MY_1
I have noticed the following example:-
Would I have to implement a DefaultMethodSecurityExpressionHandler and then some how direct a request to accessDenied.xhtml
Inside web.xml i have the followong:-
Not sure what approach to take.
Mat