How do filters interact with different types of servlets and JSP pages?
- Filters are applied only to static resources
- Filters can be applied to both servlets and JSP pages
- Filters can only be applied to servlets
- Filters cannot be applied to JSP pages
Filters can be applied to both servlets and JSP pages, providing a versatile mechanism for preprocessing and postprocessing of requests and responses in different types of web components.
Loading...
Related Quiz
- What is the primary purpose of the try-catch block in a servlet?
- The __________ object provides the filter with its configuration information.
- Which method is used to get a reference to the ServletContext?
- Which load balancing algorithm distributes requests based on the server with the least connections?
- The __________ method of a filter is used for initialization.