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

Re: Re: Filters on Servlets?

From: Art Gillespie <agillespie@rightware.com>
Date: Fri, 9 Apr 1999 10:08:58 -0400 (EDT)
Message-ID: <370A5C14000197C3@isocor.briefcase.com> (added by postmaster@isocor.briefcase.com)
To: Benoit.Mahe@sophia.inria.fr, agillespie@rightware.com
CC: www-jigsaw@w3.org
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
Received on Friday, 9 April 1999 10:09:42 GMT

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