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 the concept of single thread model interface is used?
What is api in servlet?
What are the different methods of session management in servlets?
What is servlet initializer?
What is Servlets and explain the advantages of Servlet life cycle?
What is the difference between a generic servlet and http servlet?
Is servlet synchronized?
How can you use a servlet to generate a plain text instead of html?
Explain the servlet filter.
Which http method is said to be non-idempotent and idempotent?
What are the servlet events?
How printwriter is different from servletoutputstream?
List out the difference between ServletConfig and ServletContext?
Explain get and post.
Can we fetch the attributes related to a servlet on a different servlet?