How to pass a requrest object of one servlet as a request
object to another servlet?
Answers were Sorted based on User's Feedback
Answer / hari
Use RequestDispatcher to pass a requrest object of one
servlet as a request object to another servlet.
One way of implementing this operation ,
RequestDispatcher rD = null;
rd = request.getRequestDispatcher("xxx.jsp (or) servlet");
rD.forward(request,response);
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
using request.setAttribute("key",value) in the first servlet
and request.getAttribute("key") in the second servlet
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / 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 |
What is the purpose of dispatcherservlet properties?
List the Different types of servlet?
How do I support both get and post from the same servlet?
How do you communicate in between Applets and Servlets?
How to deal with multi-valued parameters in a servlet?
Explain web container.
HTTP tunneling means what?
What is servlet initializer?
What is servlet configuration?
What do you mean by request dispatcher in servlet?
What methods do you use in servlet - applet communication?
Explain load on start-up and its importance?