How do filters interact with the rest of the servlet processing pipeline?

  • Filters can modify both request and response
  • Filters can modify only the request
  • Filters can modify only the response
  • Filters have no interaction with the servlet processing pipeline
Filters in a servlet container can interact with both the request and response objects in the servlet processing pipeline. This enables them to modify the incoming request before it reaches the servlet and manipulate the outgoing response after the servlet has processed the request.
Add your answer
Loading...

Leave a comment

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