Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / priya

in an any web application when we have to pass object from
one servlet to another then we use request dispatcher.the
request dispatcher is used by using request.setAttribute
("key",value) in the first servlet and request.getAttribute
("key")in the second servlet.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us something about servletconfig interface.

948


What is servlet? Explain

1010


How many objects of a servlet is created?

1218


Is tomcat a servlet container?

980


Explain the difference between get and post method in servlet?

1079


What are the life cycle methods of the servlet?

1037


What is the directory structure of a war file?

1111


What is meant by cookies?

1027


What is called servlet container?

1037


What is http servlet? Explain with the help of an example.

1013


Define declaration.

1020


Which exception is thrown if the servlet is not initialized properly?

976


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1041


What is the major difference between context parameter and context attribute?

1043


What is the difference in between the httpservlet and generic servlet?

1065