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 is pure servlet?
What are the benefits of using servlet over cgi?
If a servlet is not properly initialized, what exception may be thrown?
What are the types of Session Tracking ?
What do you mean by interservlet communication?
What is the difference between the include() and forward() methods?
What is life cycle of Servlet?
Why don't we write a constructor in a servlet?
What is a deployment descriptor?
What is the disadvantage of cookies?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
why we should override only no-agrs init() method.
What is the process for chaining servlet?
What is the use of servletconfig interface?
How do we translate jsp?