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.
Loading...
Related Quiz
- For an e-commerce application that needs to track user session activity and attribute changes, what combination of listeners would be ideal?
- How can you avoid concurrency issues in a servlet without using synchronization?
- In HTTP servlets, the _________ method is used to send error responses back to the client.
- A transaction's property ensuring that either all its operations are completed successfully, or none are, is known as _________.
- How does the sendRedirect() method communicate the new URL to the client's browser?