How to pass a requrest object of one servlet as a request
object to another servlet?
Answer Posted / priya
in an any web application when we have to pass object from
one servlet to another then we use request dispatcher.the
request dispatcher is used by using request.setAttribute
("key",value) in the first servlet and request.getAttribute
("key")in the second servlet.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Tell us something about servletconfig interface.
What is servlet? Explain
How many objects of a servlet is created?
Is tomcat a servlet container?
Explain the difference between get and post method in servlet?
What are the life cycle methods of the servlet?
What is the directory structure of a war file?
What is meant by cookies?
What is called servlet container?
What is http servlet? Explain with the help of an example.
Define declaration.
Which exception is thrown if the servlet is not initialized properly?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is the major difference between context parameter and context attribute?
What is the difference in between the httpservlet and generic servlet?