Oops, I meant serlvet spec 2.4. --- Jean-Francois Arcand <[EMAIL PROTECTED]> wrote: > > > Mike Curwen wrote: > > >>-----Original Message----- > >>From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, June 25, 2003 12:53 PM > >>To: Tomcat Users List > >>Subject: RE: How to protect static HTML's > >> > >> > >> > >>Howdy, > >> > >> > >> > >>>(2) Use filters. All filters set for a > particular request are run > >>> > >>> > >>*once* > >> > >> > >>>on an incoming request. If you do a > >>> > >>> > >>RequestDispatcher.forward(), the > >> > >> > >>>filters will not be run again -- and you won't > have recursion. > >>> > >>> > >>I wouldn't suggest that option, as it may break > when the > >>Servlet Specification v2.4 will be different. > Filters will > >>run on the same request through > RequestDispatcher.forward. > >> > >> > > > >Only when you specify that they are to be run that > way. You can specify > >that they only be run on incoming requests, on > forwards or on includes > >(and any combination of those). There are constants > for these, but I > >forget what they are. > > > Something like that: (with Servlet 2.4 SRV.6.2.5) > > > <filter-mapping> > > <filter-name>FilterTest</filter-name> > > <url-pattern>/*</url-pattern> > > <dispatcher>REQUEST</dispatcher> > > <dispatcher>INCLUDE</dispatcher> > > <dispatcher>FORWARD</dispatcher> > > <dispatcher>ERROR</dispatcher> > > </filter-mapping> > > -- Jeanfrancois > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] >
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
