Kief Morris wrote:
>
> Hans Bergsten typed the following on 19:17 10/12/2000 -0800
> >But maybe I'm missing something. Are you saying the whole SSI processing
> >should be done as an interceptor instead of as a servlet?
>
> Is this something that could be done as a Servlet 2.3 Filter, and so be
> completely
> container independent for 2.3 containers?
It can (likely) be done as a filter for 2.3 containers, but it still
needs help from the container to load and initialize "unnamed" servlets
(i.e. for <servlet code="className"> tags) as far as I can tell.
If only named servlets (specified in web.xml) are supported, I believe
it can be done completely with the standard API for 2.3, using
getNamedDispatcher() to get hold of an RD and then use wrapped request
and response objects when it's invoked. 2.2 doesn't allow an RD to
use wrapped request/response objects, so this approach doesn't work
for 2.2 containers.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com