How to pass a requrest object of one servlet as a request
object to another servlet?
Answer Posted / 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 |
Post New Answer View All Answers
What are the mechanisms used by a servlet container for maintaining session information?
Explain the features are in servlet 3?
What are the advantages of servlets over traditional cgi?
Difference between doget and dopost?
How can the referrer and the target urls be used in servlet?
Define the life cycle of a servlets.
Is it possible to have a constructor inside the servlet?
How servlet is created?
What is servlet looping or chaining?
How to make sure a servlet is loaded at the application startup?
What is the major difference between servlet and applet?
What is pure servlet?
What is the process to implement doget and dopost methods?
What is getservletcontext?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?