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 the concept of single thread model interface is used?

922


What is api in servlet?

962


What are the different methods of session management in servlets?

942


What is servlet initializer?

914


What is Servlets and explain the advantages of Servlet life cycle?

1037


What is the difference between a generic servlet and http servlet?

937


Is servlet synchronized?

1016


How can you use a servlet to generate a plain text instead of html?

1073


Explain the servlet filter.

928


Which http method is said to be non-idempotent and idempotent?

1000


What are the servlet events?

1007


How printwriter is different from servletoutputstream?

951


List out the difference between ServletConfig and ServletContext?

985


Explain get and post.

1055


Can we fetch the attributes related to a servlet on a different servlet?

1082