What is a Filter in JSP ?

We can define filters in JSP to intercept requests from a client or to change response from a server.

Filter is a Java class that is defined in the deployment descriptor of web.xml of an application. The JSP container reads filter from web.xml and applies a filter as per the URL pattern associated with the filter.

JSP Engine loads all the filters in when we start the server.



You May Interest

What are the Differences Between Comparable and Comparator in Jav ...

What are the Differences Between a HashSet and a HashMap in Java ...

How Can Be Read Data From a Form in a JSP ?

How Can We Reference an Unreferenced Object Again in Java ?

Why an Object Used as Key in HashMap Should Be Immutable in Java ...