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

(unknown charset) Re: Filters on Servlets?

From: (unknown charset) S. Alexander Jacobson <alex@shop.com>
Date: Fri, 9 Apr 1999 11:00:46 -0400 (EDT)
To: (unknown charset) Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
cc: (unknown charset) agillespie@rightware.com, www-jigsaw@w3.org
Message-ID: <Pine.WNT.4.05.9904091107550.-266945@maniac.vo.com>
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
Received on Friday, 9 April 1999 11:01:42 GMT

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