How can a filter pass control to the next entity in the filter chain?
- chain.continueFiltering(request, response)
- chain.doFilter(request, response)
- filterChain.doFilter(request, response)
- filterChain.passControl(request, response)
To pass control to the next entity in the filter chain, the correct method is chain.doFilter(request, response). It invokes the next filter or the servlet in the chain.
Loading...
Related Quiz
- How does a servlet container differentiate between authenticated and unauthenticated users?
- What is the role of @ServerEndpoint annotation in Java WebSocket API?
- What is the primary purpose of a filter chain in a servlet environment?
- To set a date in a PreparedStatement, the method _________ is used.
- In SQL, the command ________ is used to permanently save changes made by the current transaction.