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 we can call a jsp from the servlet?
Why do we have servlet filters?
how many jsp scripting elements are there and what are those?
What’s the use of the servlet wrapper classes??
What is difference between Forward() and sendRedirect() methode?
What is the procedure of invoking different servlet in a different application?
What is the workflow of a servlet?
What are the key methods that are involved in processing of http servlets?
Is servlet a framework?
What is servlet name in web xml?
How do you load an image in a Servlet?
Explain url encoding?