How two servlets communicate with each other?
Answers were Sorted based on User's Feedback
Servlets communicate with each other with the help of
RequestDispatcher objects.
RequestDispatcher rd=getServletConfig().getNamedDispatcher
(...);
... name used to identify a servlet i.e. name given in the
web.xml in the url-pattern
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / devendra
Servlets can communiceate with the help of RequestDispacher.
RequestDispacher rd = getRequestDispacher("passing the 2nd servlet url");
rd.forward(rquest,response);
| Is This Answer Correct ? | 6 Yes | 1 No |
Describe the phases of servlet lifecycle?
What is a generic servlet?
What are the types of servlets? Explain
What is called servlet mapping?
What is webservlet?
How can a servlet be used to generate plain text instead of html?
What are the different methods involved in the process of session management in servlets?
Can we fetch the attributes related to a servlet on a different servlet?
What is the difference between CGI and Servlet?
Which is better jsp or servlet?
What are the differences between servlet context vs servlet config?
What is MIME Type?