Can a filter modify the request and response objects?

  • Depends on servlet version
  • No
  • Sometimes
  • Yes
Yes, a filter can modify the request and response objects before they reach the servlet or after they leave the servlet, providing a mechanism to pre-process or post-process the request and response.
Add your answer
Loading...

Leave a comment

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