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
Can you use javascript in servlets?
What are some advantages of storing session state in cookies?
What do you mean by servlet?
What is java servlet?
How a servlet is unloaded?
What is pure servlet?
what do you understand by url rewriting?
Why is init() method is used in servlets?
Explain the servlet filter.
Explain the difference between generic servlet and http servlet?
What is a servlet-to-servlet communcation?
How can we include static files in the jsp page?
How to handle exceptions thrown by application with another servlet?
Is servlet a framework?
What are the supporting protocol by HttpServlet ?