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

How the JSP file will be executed on the Server side?

648


What is the difference between context parameter and context attribute?

535


What are the functions of an intercepting filter?

494


How printwriter is different from servletoutputstream?

584


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

614






Which httpsession object is used to view and manipulate information about a session?

736


Explain the servlet context.

604


What is servlet? Explain

584


Explain the lifecycle of a servlet?

513


Which method is called when reference variable is passed in system.net?

1838


What is a servlet engine?

548


what is multiple server?

1764


Explain is servlet mapping?

586


What do you mean by request dispatcher in servlet?

616


What is the servletconfig object?

536