FAQ

Java

JSP

Servlet


Advertisement



What is Servlet Collaboration?

The Servlet collaboration is all about sharing information among the servlets. Collaborating servlets is to pass the common information that is to be shared directly by one servlet to another through various invocations of the methods. To perform these operations, each servlet need to know the other servlet with which it is collaborated. Here are several ways to communicate with one another:

  • Using RequestDispatchers include() and forward() method;
  • Using HttpServletResponse sendRedirect() method;
  • Using ServletContext setAttribute() and getAttribute() methods;
  • Using Java's system-wide Properties list;
  • Using singleton class object.


Printer-friendly version Printer-friendly version | Send this 
article to a friend Mail this to a friend

Previous Next vertical dots separating previous/next from contents/index/pdf Contents

  |   |