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.
Add your answer
Loading...

Leave a comment

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