What Is a Servlet Filter?
Servlets are Java classes which handle a client’s request. Servlets are used to process HTTP requests and to generate HTTP responses. What is a Servlet Filter? A Servlet filter provides a way to modify the request or response before it is handled by the servlet, or after the servlet has generated it. Why would you want to modify the request or response? There are many reasons to modify the request or response, such as: ...