Why java servlet is not a filter?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2957165/servlet-vs-filter">servlet vs filter</a>  </p>
</blockquote>



<p>I am java beginner. Now I am learning about filters.
What is the difference between servlet &amp; filter. I have read about filter, </p>

<blockquote>
  <p>a filter is an object that can transform a request or modify a
  response. Filters are not servlets; they don't actually create a
  response</p>
</blockquote>

<p>I am not able to understand that. Can any one explain it to me.</p>
