How can filters modify the request and response objects in a filter chain?
- Modify only the request object
- Modify the objects directly
- Use the doFilter() method
- Use the init() method
Filters can modify the request and response objects by using the doFilter() method in the filter chain.
Loading...
Related Quiz
- A filter is configured in the web application's __________ file.
- To secure a servlet, developers often use _________ combined with _________ to restrict access.
- What is the impact of setting a very high or very low size for the connection pool?
- How does a servlet handle a scenario where it needs to redirect a client to an external website for authentication?
- How does redirection differ from request dispatching in servlets?