Re: struts 2.0.8 problem implementing filter

2007-08-12 Thread Laurie Harper
Eugen Stoianovici wrote: i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { pub

Re: struts 2.0.8 problem implementing filter

2007-08-10 Thread Toni Lyytikäinen
Sorry, but why go the hard way when you can achieve the same with a simple interceptor? You can return a global result from a interceptor (f.ex. return "errorPage") which is lot simpler than getting tangled with the RequestDispatcher stuff. On 8/10/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: >

Re: struts 2.0.8 problem implementing filter

2007-08-10 Thread Toni Lyytikäinen
Sorry, but why go the hard way when you can achieve the same with a simple interceptor? You can return a global result from a filter (f.ex. return "errorPage") which is lot simpler than getting tangled with the RequestDispatcher stuff. On 8/10/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > i

struts 2.0.8 problem implementing filter

2007-08-10 Thread Eugen Stoianovici
i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { public void doFilter(ServletR