Sounds like this is a logic problem in your filter; hard to know exactly
what w/o seeing your code & filter definition.  You could change your logic,
possibly by adding a trail of breadcrumbs so the next time through you don't
redirect.  Or, you could consider changing the filter url match pattern to
not include the page(s) to which you are redirecting.

Tim


> -----Original Message-----
> From: webzo [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 07, 2007 8:38 PM
> To: users@tomcat.apache.org
> Subject: How to avoid infinite loop during filter processing?
> 
> Hello,
> I am trying to something fairly simple and have a problem-
> Basically, I use a filter that intercepts access to ALL jsp pages,
> determines whether the user needs to be authenticated. If
> authentication is required, the filter passes it on to the next filter
> (filterchain.doFilter( ) ), else continues on to to originally
> requested page. Problem is, when I try to redirect to the originally
> requested page (because no authentication is required), the redirect is
> also again intercepted by the filter and we go through the same loop
> again- infinite loop. Is there a way to avoid this?
> 
> Thanks.
> 
> Av.
> 
> 
> 
> 
> 
> __________________________________________________________________________
> __________
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to