tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Ruthenbeck <just...@nextengine.com>
Subject RE: How to protect static HTML's
Date Wed, 25 Jun 2003 18:31:03 GMT
At 11:12 AM 6/25/2003, you wrote:

>Aren't those new keywords in the 2.4 servlet spec?
>They don't do any good for anyone who uses Tomcat
>4.1.24 or earlier.  Right?

Yes, that's correct.  Yoav's point was that if you go with Filters in 
Tomcat 4.x (Servlet 2.3), you may have to change your configurations when 
you eventually upgrade to Tomcat 5.x (Servlet 2.4).

To be clear:

For Tomcat 4.x, Filters are only run when a request comes to the 
container.  For Tomcat 5.x, Filters are configurable to run at any or all 
of request-time, forward-time, and include-time -- depending on the 
Servlet2.4 <dispatcher> element.

justin


>--- Justin Ruthenbeck <justinr@nextengine.com> wrote:
> > At 10:57 AM 6/25/2003, you wrote:
> >
> > > > -----Original Message-----
> > > > From: Shapira, Yoav
> > [mailto:Yoav.Shapira@mpi.com]
> > > > 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.
> >
> > See SRV.6.2.5 -- The xml tag is
> > <dispatcher>[INCLUDE,FORWARD,REQUEST]</dispatcher>
> >
> > justin
> >
> > ____________________________________
> > Justin Ruthenbeck
> > Software Engineer, NextEngine Inc.
> > justinr - AT - nextengine DOT com
> > Confidential
> >     See
> > http://www.nextengine.com/confidentiality.php
> > ____________________________________
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> >
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


____________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
    See http://www.nextengine.com/confidentiality.php
____________________________________


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


Mime
View raw message