tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: Filters running twice!!!
Date Tue, 12 Feb 2002 16:16:12 GMT


On Tue, 12 Feb 2002, Cox, Charlie wrote:

> Date: Tue, 12 Feb 2002 08:01:03 -0500
> From: "Cox, Charlie" <ccox@cincom.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> Subject: RE: Filters running twice!!!
>
> does your dbfilterLog filter run twice also?
>
> I know that IE can sometimes make a "HEAD" request, but I'm not sure if that
> would get to the filter or not(anyone know?). If from the "HEAD" request it
> determines that it needs to reload the page, it will make a new request.
>

Yes, it definitely would -- any request that actually reaches Tomcat and
is matched by the mappings will be executed.

Note that, at the servlet level, the default implementation of HttpServlet
normally processes doHead() calls for you, so that you never see them.

> if you are just logging page accesses, you can use the AccessLogValve
> instead.
>
> Charlie
>

Craig


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message