aspose file tools
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


Win a copy of Head First Android this week in the Android forum!
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
Sheriff

Joined: Oct 14, 2005
Posts: 19680
    
  10

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Filters not served by container
 
It's not a secret anymore!