Yes, you can catch org.acegisecurity.AccessDeniedException as the MVC controller. The SecurityEnforcementFilter (which usually catches this exception) will never have it propagate up from the DispatcherServlet.
I mapped org.acegisecurity.AccessDeniedException in a exceptionResolver, but 403 does not get forwarded to the error page.
Can we use Spring settings or we need to use web.xml to forward to a particular jsp file in case of the 403 error?
If the problem occours in IE, but not in other browsers - it's IE's pretty-error-print functionality that is the problem. Your error page is to small, it needs to be atleast 10kB (add a long comment to make it larger). Read more about the problem at:Originally Posted by Damendra
BTW: This is a reply to the web.xml solution with the errorcode/-page mapping.
- Jørgen Løkke -
Last edited by jorlokk; Mar 3rd, 2006 at 02:20 AM.