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 types of servlets? Explain
What is dispatcher servlet?
Does servlet have main method?
Which exception is thrown if the servlet is not initialized properly?
How does Cookies work in Servlets?
What is pure servlet?
How do we translate jsp?
What is servletconfig?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Difference between httpservlet and generic servlets?
Why doesn’t a servlet include main()?
How do we go with database connection and log4j integration in servlet?
What are the different methods involved in generic servlet?
Tell us something about servletconfig interface.
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?