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 difference between get and post method?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is http servlet? Explain with the help of an example.
What are the servlet events?
Where do you define dispatcherservlet?
Describe the phases of servlet lifecycle?
Which http method is said to be non-idempotent and idempotent?
What is session?
What is servlet configuration?
What are life cycle methods of a servlet?
Describe in brief RequestDespatcher?
What are the differences between the servletconfig interface and the servletcontext interface?
How to find whether a parameter exists in the request object?
What is the use of servlet wrapper classes?
Name the different ways of session tracking.