GeeCON Prague 2014*
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
Author

Filters not served by container

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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.
 
GeeCON Prague 2014
 
subject: Filters not served by container