Hi, The Servlet Spec v2.4, which Tomcat 5.x implements, provides an answer to your problem: add a forward/include directives to your filter-mapping. See SRV.13.1 for the syntax and examples.
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: QM [mailto:[EMAIL PROTECTED] >Sent: Saturday, December 04, 2004 10:24 PM >To: Tomcat Users List >Subject: Re: Filter/... > >On Sat, Dec 04, 2004 at 05:56:15PM +0000, Brij Naald wrote: >: The filter I have now, always get called when there is an incoming >request. >: But when a servlet uses a requestdispatcher to include another servlet, >the >: filter doesn't get called. > >This makes sense: filters are for external requests, not intra-container >requests. This is why you can include() data or forward() to resources >that are otherwise protected from direct end-user requests (e.g. files >under WEB-INF). > > >: But what I need to get is: >: Request --> Filter -> Servlet1 -> Filter -> Servlet2 > >You may want to consider a high-level redesign, or at least change the >include() to an HTTP request in and of itself. > >What's going on in your design that you require the filter to wrap the >inner (include()'d) request? Storing/changing session objects? >-QM > >-- > >software -- http://www.brandxdev.net >tech news -- http://www.RoarNetworX.com > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]