What is the difference between filter chaining and servlet chaining?
- Filter chaining is sequential execution of multiple filters before the servlet is invoked.
- Filter chaining is used only for static resources.
- Servlet chaining is sequential execution of multiple servlets before the response is sent to the client.
- There is no difference.
Filter chaining involves the sequential execution of multiple filters before the servlet is invoked, allowing each filter to process the request or response. Servlet chaining involves the sequential execution of multiple servlets before the response is sent to the client.
Loading...
Related Quiz
- What is a session ID in the context of web applications?
- Filters can be used to implement __________, which is a common requirement in web applications.
- When no connections are available in the pool, the request is put into a __________ until a connection becomes available.
- To handle multiple file uploads, a servlet may use the __________ API.
- What is the function of FilterMapping in a web application?