The moose likes Servlets and the fly likes Filters not served by container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filters not served by container" Watch "Filters not served by container" New topic

Filters not served by container

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

I read as

'A Servlet is equivalent to web resource except that it is dynamic. A filter on the other hand is not a resource that container serves.'

I am bit confused about above statement. Who serve the filter if not container. Any ideas, resources, links, sample code highly appreciated. Thanks in advance
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I suppose you don't know what "serve" means in the web context. It means to send a resource from the server to the client. The client doesn't use the filter, only the container does. So there is no need for the container to serve it.
I agree. Here's the link:
subject: Filters not served by container
It's not a secret anymore!