W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

Re: Filters on Servlets?

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Fri, 09 Apr 1999 16:50:09 +0200
Message-ID: <370E13A1.715099D1@sophia.inria.fr>
To: agillespie@rightware.com
CC: Benoit.Mahe@sophia.inria.fr, www-jigsaw@w3.org
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
---------------------------------------------------------------------
Received on Friday, 9 April 1999 10:50:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT