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

Why is init() method is used in servlets?

1080


What is servlet and list its types?

1132


What is servlet in tomcat?

1102


What is called servlet container?

1153


What is the inter-servlet communication?

1222


Explain the servlet context.

1211


What is the GenericServlet class?

1293


When Servlet is unloaded?

1147


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

1131


How is the get () method different from the post() method?

1038


What are the steps that are involved in using the httpservlet class?

1187


What are the different types of servlets?

1066


What are the types of servlet?

1381


What are the types of Session Tracking ?

1211


Explain the lifecycle of a servlet?

1028