Some times servlets have to cooperate, i.e. usually by sharing information.
This communication can be called as Sort Servlet collaboration.
The servlet, which are collaborating, can pass the shared information directly from one servlet to another. Request Dispatcher defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server. The servlet container creates the RequestDispatcher object, which is used as a wrapper around a server resource located at a particular path or given by a particular name.
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101