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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *