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

In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

1075


What is servlet and how it works?

1046


What is cgi?

1070


How httpservlet is different from the genericservlet?

1189


Which HTTP method is non-idempotent?

1188


Write a program to show the functionality of doget and dopost method?

1260


How do you define a servlet?

1041


What is http servlet?

1106


How the typical servlet code look like ?

1323


Is java servlet still used?

1095


What are the types of protocols supported by httpservlet ?

1279


What is servlet and its types?

1105


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1152


Who is responsible to create the object of servlet?

1255


Difference between forward() method and sendredirect() method ?

1094