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: Bezerk - tomcat calls JSP twice ?
Date Mon, 02 Dec 2002 17:15:01 GMT


On Mon, 2 Dec 2002, Stephen Riek wrote:

>
> If a Filter makes a call to a page using for example
> RequestDispatcher.forward("/Products/index.jsp"), will that request
> dispatcher bypass any filters, or will it still be subject to all filter
> rules ?
>

In Servlet 2.3 (i.e. Tomcat 4.x), Filters are not invoked when you do a
RequestDispatcher.forward() or RequestDispatcher.include().  They are only
invoked on the original request.

In Servlet 2.4 (i.e. Tomcat 5), you can use an additional web.xml
configuration element that requests filters even on RD calls.  For
backwards compatibility, the default behavior will continue to be omitting
them.

>
> Stephen.
>

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message