How to pass a requrest object of one servlet as a request
object to another servlet?

Answer Posted / ravikiran(aptech mumbai)

using request.setAttribute("key",value) in the first servlet
and request.getAttribute("key") in the second servlet

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to get the server information in servlet.

573


Can servlet have a constructor ?

597


What do you mean by the servlet chaining?

549


Whats the advantages using servlets over using CGI?

590


What are the life-cycle methods for a servlet?

557






What methodology can be followed to store more number of objects in a remote server?

1818


How do servlets work?

536


What is the difference between CGI and Servlet?

590


Explain the difference between a web server and a web container?

517


explain the advantages of servlet life cycle?

560


Is that servlet is pure java object or not?

644


Explain how to improve Servlet Performance?

598


What is difference between jsp and servlet?

646


What is a servlet engine?

545


How do you design microservices?

625