Hi
we want to know how filter is different from servlet.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Mar 13, 2012, 11:18 PM
Use a Filter when you want to filter and/or modify requests based on specific conditions. Use a Servlet when you want to control, preprocess and/or postprocess requests.
Refer to know more about Filter
http://docs.oracle.com/javaee/6/tutorial/doc/bnagb.html
Thanks