Hassan Ebied wrote:And so for me it's right, doFilters' goal is to proceed nexts filters! no?.
doFilter method goal is not actually to proceed with next filters , its mission in life is do some certain logic before proceeding the request by the container and everything is fine then it will call doFilter on filterChain object to let the container either to to proceed with the request of the queue of filters is empty or to select the next filter from the chain to be processed.
I spoke about dofilter method of FilterChain in this sentence :
And so for me it's right, doFilters' goal is to proceed nexts filters! no?.
When i said "next filters" it means "next filter if there's one, else the servlet"
If you don't call dofilter method of FilterChain, next filters won't be executed, so we can say that in order to ensure that all filters have a chance to execute you must call doFilter() on the input FilterChain object, no???