posted 12 years ago
Hi All,
Before all, I want to apologize for my bad English.
Well I'm trying to handle the @PreAuthorize exeception and redirect to my access denied page.
I have two things:
My custom access denied page that is configured and it's work fine. I have add and the jspx, works perfectly except with de PreAuthorize.
I have put in a controller, on top of the method and it's throw an exception if I have another ROLE.
This is my full configuration:
in webmvc-config.xml:
in applicationContext.xml
and it's ok.... in my class SkipMethodCallAccessDecisionManager with a breakpoint in
the exception is caught in InvocableHandlerMethod.class:
And in the browser I have the default error page.....
When and how I do redirect to my custom access denied page?
I need some help please
Thanks in advance.
Best regards.