In a Filter.doFilter method I made this call chain.doFilter.
What is doFilter doing inside a doFilter? Isn’t it a recursive call?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Servlet Filters are an implementation of the Chain of responsibility design pattern.
All filters are chained (in the order of their definition in web.xml). The
chain.doFilter()is proceeding to the next element in the chain. The last element of the chain is the target resource/servlet.