How do you pass the data from one servlet to another
servlet?
Answer Posted / tulasi vani
We can pass the data from one servlet to another using
RequestDispatcher object.
1.RequestDispatcher rd=getServletContext.getNamedDispatcher
("...");
rd.forward(request,response);
... means use the name of the url-patterns you have
specified for the servlet in web.xml.
| Is This Answer Correct ? | 34 Yes | 15 No |
Post New Answer View All Answers
Why is init() method is used in servlets?
What is servlet and list its types?
What is servlet in tomcat?
What is called servlet container?
What is the inter-servlet communication?
Explain the servlet context.
What is the GenericServlet class?
When Servlet is unloaded?
What is the capacity the doget can send to the server?
How is the get () method different from the post() method?
What are the steps that are involved in using the httpservlet class?
What are the different types of servlets?
What are the types of servlet?
What are the types of Session Tracking ?
Explain the lifecycle of a servlet?