Re: Filters on Servlets?

Of course, but this wouldn't be consistant with the way Jigsaw
apply filters on other resources. Jigsaw was not designed for
servlets, this is just a useful extension.

Regards, Benoit.

"S. Alexander Jacobson" wrote:

> You could get around this by setting a socket factory or wrapping the
> sockets passed to the servlet...
>
> -Alex-
>
> On Fri, 9 Apr 1999, Benoit Mahe wrote:
>
> > Ok I see. The OutputFilter method of Filters can't be called on servlets
> > because servlet write the reply directly on the Socket.
> > There is no solution for that, sorry.
> >
> > Regards,Benoit.
> >
> > Art Gillespie wrote:
> >
> > > Benoit,
> > >
> > > I have attached a filter called XMLFilter directly to the
> > > ServletWrapperFrame for a Servlet Resource entitled
> > > XMLServlet.  I know the XMLFilter class works because I also
> > > have it associated with the .xml extension, and it works
> > > fine on files.
> > >
> > > I've put a debug line at the top of the outgoingFilter()
> > > method in XML filter like so:
> > >
> > > System.out.println("OUTGOING FILTER CALLED");
> > >
> > > When I call xml files, I see the appropriate debug output at
> > > the console.  However, when I call XMLServlet, I don't see
> > > it, leading me to believe that the outgoingFilter method is
> > > not being called after calling the servlet.  Instead, the
> > > output of the Servlet is sent directly to the browser.
> > >
> > > Any ideas why this method isn't being called?
> > >
> > > Thanks,
> > >
> > > Art
> > >
> > > Benoit Mahe wrote:
> > > > The filter MUST be attached to the ServletWrapperFram
> > > > e, and this
> > > > works.
> > > >
> > > > Regards, Benoit.
> > > >
> > > > Art Gillespie wrote:
> > > >
> > > > > Is it possible to place a filter on a ServletWrappe
> > > > r?  I've
> > > > > tried to do it the same way you would with an
> > > > HTTPFrame, but
> > > > > it doesn't seem to work.
> > > > >
> > > > > ?
> > > > >
> > > > > Art
> > > > >
> > > > > ___________________________________________________
> > > > ______
> > > > > Better than free email:  shared calendar, files,
> > > > and more...
> > > > > Get your 'Visto Briefcase' at http://www.visto.com/
> > > > info
> > > >
> > > > --
> > > > - Benoît Mahé ---------------------------------------
> > > > ----------------
> > > >                       World Wide Web Consortium
> > > >   (W3C)
> > > >                     Architecture domain - Jigsaw
> > > > Engineer
> > > >
> > > >               http://www.w3.org/People/Mahe
> > > > - bmahe@w3.org
> > > > -----------------------------------------------------
> > > > ----------------
> > > >
> > > >
> > > >
> > > >
> > >
> > > _________________________________________________________
> > > Better than free email:  shared calendar, files, and more...
> > > Get your 'Visto Briefcase' at http://www.visto.com/info
> >
> > --
> > - Benoît Mahé -------------------------------------------------------
> >                       World Wide Web Consortium   (W3C)
> >                     Architecture domain - Jigsaw Engineer
> >
> >                http://www.w3.org/People/Mahe  - bmahe@w3.org
> > ---------------------------------------------------------------------
> >
> >
> >
>
> ___________________________________________________________________
> S. Alexander Jacobson                   Shop.Com
> 1-212-697-0184 voice                    The Easiest Way To Shop

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------

Received on Friday, 9 April 1999 11:07:53 UTC