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
Explain servlet.
Explain session tracking and its importance?
What's the difference between servlets and applets?
What are the life-cycle methods for a servlet?
What is servlet interface?
What is life cycle of Servlet?
What exactly are the functions of servlet?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
How can the referrer and the target urls be used in servlet?
Define the servlet mapping.
How to get the server information in a servlet?
What methodology can be followed to store more number of objects in a remote server?
What is the use of servletconfig interface?
What is the use of send redirect () method?
Servlet is pure java object or not?