This may be a stupid question (I hope not!)....but I have Acegi setup and working very well accept for one small issue...when a user attempts to access a page (I am also using Tapestry, just FYI) and they do not have access permissions then the AccessDecisionManager throws (correctly) an AccessDeniedException. My question is this- how do I catch this exception in my application? I want to be able to redirect the client to the login page, but instead I get an exception occured error (which it did) in my browser(!)
How do I catch the exception (that is where can I insert a try/catch block for it) so I can programmatically redirect to the Login page?