Peter Delahunty wrote:

> Orion has released an implementation of servlet 2.3. I haven't had chance to
> play with it yet but i am very interested in "Servlet Filtering". I have
> been flicking through the new servlet 2.3 api and i think filtering will
> address some of the problems with the servlet api. Being able to cleanly
> capture the output of a servlet using a filter will be major benifit. I can
> forsee being able to implement a caching system for all servlets in a
> system. As in all requests go through the filter.
>

Yes, caching is one of the many things that filters can be used for.  The idea
would be that when your filter receives the request, it determines whether a
cached response for that request is already available, and would simply feed
that back in the response.  Otherwise, it would forward the request on to the
servlet, who would produce the response (and your filter would cache it if
appropriate).

Note that the current 2.3 spec is a *draft* and still subject to change in
response to public feedback.

Note also that, even in earlier servlet revs, you can do a limited form of cache
support by implementing the HttpServlet.getLastModified() method.


>
> Does anyone have any thoughts on this?
>

Besides Orion, Tomcat 4.0 (pre-alpha) implements the new filtering
specification, and most (not quite yet all) of the other new 2.3 features.  You
can grab it at:

    http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly

The other servlet container providers will be at various places in the
implementation of new spec features -- contact them individually for more
information.

Craig McClanahan


====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to