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 |
how to pass parameter from servlet to html form
Explain the difference between servlet and cgi?
Some examples where generic servlet is used?
How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?
What do you mean by request dispatcher in servlet? Also explain its methods.
Which method the Servlet container call to create the instance of the servlet?
16 Answers emc2, JK Technosoft,
what is meant by servlet to servlet communication?
What is a Proxy Server?
What is Single Threaded Model in Servlets? Explain this with an example?
How can we implement a jsp page?
What are the servlet events?
What is session?