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

What is the capacity the doget can send to the server?

1089


What is a servlet context?

1178


What is the difference between sendredirect() and forward() in a servlet?

1022


What is the difference between the include() and forward() methods?

1094


What is a deployment descriptor?

1113


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3401


Describe in brief RequestDespatcher?

1146


What is http servlet?

1072


What’s the use of the servlet wrapper classes??

1110


Which method of the httpservletrequest object is used?

1100


Why do we need a constructor in a servlet if we use the init method?

1059


What methods do you use in servlet - applet communication?

1053


Explain session tracking and its importance?

1017


What is the difference between portlet and servlet?

1004


What do you mean by annotations in servlet?

1067