Hi everyone, I'm trying to figure out how to implement a RequestDispatcher, so I checked
tomcat's source code, the ApplicationDispatcher class, but there are many places I can't understand.
I found in the ApplicationDispatcher class that the method used to forward request and response to the designated resource is the invoke(ServletRequest,ServletResponse) method, and this part is responsible for executing forward:
I can't understand this part of code, does this mean the RequestDispatcher.forward() and RequestDispatcher.include() methods are all executed in a filterchain? Can anyone tell me the machanism of it?
Thanks in advance!