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 do you pass the data from one servlet to another
servlet?

Answer Posted / tulasi vani

We can pass the data from one servlet to another using
RequestDispatcher object.


1.RequestDispatcher rd=getServletContext.getNamedDispatcher
("...");
rd.forward(request,response);

... means use the name of the url-patterns you have
specified for the servlet in web.xml.

Is This Answer Correct ?    34 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions of an intercepting filter?

950


What is difference between server and servlet?

1092


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

1109


What is servlet? Explain

1067


Explain the difference between get and post method in servlet?

1144


Define context initialization parameters.

1041


What are some disadvantages of storing session state in cookies?

1023


Does servlet have main method?

1190


How can we implement a jsp page?

1138


How do we translate jsp?

1056


What is servlet and how it works?

974


Is it possible to have a constructor inside the servlet?

1015


Why doesn’t a servlet include main()? How does it work?

1160


How we can get ip address of client in servlet?

991


Is it good idea to create servlet constructor?

1256