i'm new in servlet and want to know that what's the benifit of filter in servlet? and don't understand exactly what's the use of Filter? can you explain me with an example?
help would be appreciated!!
i'm new in servlet and want to know that what's the benifit of filter in servlet? and don't understand exactly what's the use of Filter? can you explain me with an example?
help would be appreciated!!
Filters not create a response like servlet. A filter is an object that can transform a request or alter a response before it reaches to a servlet and can process response before it leaves to a servlet.
A filter can intercept a servlet's invocation before the servlet is called .
Can examine a request before a servlet is called.