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.
Loading...
Related Quiz
- A developer is optimizing an application that frequently queries a large database. What strategies should be considered?
- The __________ method is used to initialize the filter with configuration parameters.
- How does 'cache eviction' differ from 'cache invalidation' in caching strategies?
- The __________ method is used by an HTTP servlet to handle PUT requests.
- What is the purpose of the FilterConfig object in Servlet filters?