How does a filter modify the response of a servlet or JSP in the filter chain?

  • By modifying the request object
  • By modifying the response object
  • By replacing the servlet output
  • By skipping the filter chain
A filter modifies the response by manipulating the response object in the filter chain. It can modify headers, content, or perform other operations on the response before it reaches the client.
Add your answer
Loading...

Leave a comment

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