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

Tell us something about servletconfig interface.

743


How a servlet is unloaded?

772


What do you mean by session tracking and also explain its techniques?

659


What are the functions of an intercepting filter?

686


What is difference between server and servlet?

765






What is the difference between using getSession(true) and getSession(false) methods?

748


What is a cookie What is the difference between session and cookie

787


What is the servletconfig object?

712


What are the annotations used in servlet 3?

740


How httpservlet is different from the genericservlet?

761


Explain servlet.

756


Should I override the service() method?

841


What is java servlet session?

691


Why HttpServlet class is declared abstract?

823


Explain the war file?

793