How do servlet filters complement the MVC architecture in web applications?

  • Filters can preprocess requests and post-process responses, adding a layer of functionality
  • Filters cannot be integrated with MVC architecture
  • Filters handle only authentication tasks
  • Filters replace the need for controllers in MVC
Servlet filters complement the MVC architecture by providing a mechanism to preprocess requests and post-process responses. They add a layer of functionality that can be applied across multiple components, enhancing the flexibility of the MVC design.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *