Can a filter modify the request and response objects?
- No
- Yes, both request and response objects
- Yes, only request object
- Yes, only response object
Filters have the ability to modify both the request and response objects, allowing them to manipulate data during the processing of a request.
Loading...
Related Quiz
- In a chat application using WebSockets, when a message is sent to a closed connection, what happens and how should it be handled?
- To handle multiple file uploads, a servlet may use the __________ API.
- HTTP persistent connections are managed using the _________ header in servlet responses.
- Which method is used to initialize a filter in the filter chain?
- How can an HTTP servlet differentiate between GET and POST requests?