Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filters not served by container

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21315
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic