Inter Servlet Communication
For Inter Servlet Communication, we use two types of Interface:
• RequestDispatcher
RequestDispatcher generates both Request and Response. It has two methods:• forward() is to forward the servlet or to go to the next servlet.
• include() is to include the previous servlet to the new one.