[struts2] redirecting to a struts action in a filter

2006-10-04 Thread Garner Shawn
I have a filter and I'm trying to check a session value is set for security. I'm putting my filter to the /admin/* url mapping. My filter is getting hit but then if I try to do a redirect to a struts action it seems like I get some kind of infinite filter loop and is choking, I'm kind of new is

Re: [struts2] redirecting to a struts action in a filter

2006-10-04 Thread Don Brown
Sounds like you have the situation under control - you are probably forwarding to an /admin/ action. As for the redirect, from a servlet filter, a plain redirect is the best approach. Don On 10/4/06, Garner Shawn [EMAIL PROTECTED] wrote: I have a filter and I'm trying to check a session value

Re: [struts2] redirecting to a struts action in a filter

2006-10-04 Thread Chris Pratt
Normally, with filters you chain when you're finished, not redirect. The only time you would redirect would be if the user wasn't logged in and you wanted to redirect to your login page and then a plain ol' redirect should work fine as long as you don't redirect to a page that's also under the