Alright, that works. My exception is now caught and my jsp is forwarded to my custom AccessDenied page.
However, i was wondering if this could be solved my implementing a filter in my configuration. There is an exceptionTranslationHandler in the Spring configuration which, as far as i know, is supposed to be used for this kind of action. I just cant seem to get it to work. A similar feature is made with the filterInvocationInterceptor in which the users.htm is secured against unauthorized access. The same thing is what i want to do, except i use the MethodSecurityInterceptor which works similar. Isnt that possible? If that doesnt work, or that is not supposed to work that way, i will use this solution. I just think the other solution is better, cause there is no direct relation to Webwork, or any other web-framework. Matt Raible-3 wrote: > > You should be able to do something like the following in your xwork.xml > file: > > <global-exception-mappings> > <exception-mapping > exception="org.springframework.dao.DataAccessException" > result="dataAccessFailure"/> > </global-exception-mappings> > > Matt > > On 1/25/07, ErwinF <[EMAIL PROTECTED]> wrote: >> >> I dont have an exceptionresolver in my action-servlet.xml file >> (I am using Webwork, though :D) >> >> Smiley, Stuart A. wrote: >> > >> > Did you try adding a property for this exception to the >> exceptionResolver >> > bean in your action-servlet.xml file? >> > >> > Stuart >> > >> > -----Original Message----- >> > From: [EMAIL PROTECTED] >> > >> [mailto:[EMAIL PROTECTED] >> > ]On Behalf Of ErwinF >> > Sent: Thursday, January 25, 2007 9:16 AM >> > To: [email protected] >> > Subject: [appfuse-user] Exception handling with ACL >> > >> > >> > >> > I have a question about the use of Acegi, and especially the use of ACL >> > security. >> > Perhaps someone at these forums can help me. >> > >> > I have set up ACL for my domain objects, and it is working. >> > However, since i am relativily new to the whole Spring / Acegi matter, >> i >> > am >> > struggling with some configuration issues. >> > I tried browsing the forums to see if anyone else had the same >> problems, >> > but >> > i cant seem to find the answer. >> > >> > What i want to do is the following: >> > Whenever an AccessDeniedException is thrown by the interceptor, i want >> to >> > catch that exception and forward to an accessdenied.jsp or equivalent. >> > Problem is, i dont know how. I tried some stuff with >> > ExceptionTranslationFilter, but it doesnt work. >> > >> > Whenever i deliberately try to force an accessdeniedexception, the >> > resulting >> > exception stacktrace is shown in my browser, and nothing is caught and >> > handled. >> > >> > Can someone point me in the right direction? >> > >> > Thanks >> > -- >> > View this message in context: >> > >> http://www.nabble.com/Exception-handling-with-ACL-tf3110055s2369.html#a8619903 >> > Sent from the AppFuse - User mailing list archive at Nabble.com. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Exception-handling-with-ACL-tf3110055s2369.html#a8635279 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Exception-handling-with-ACL-tf3110055s2369.html#a8638227 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
