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 two servlets communicate with each other?

Answers were Sorted based on User's Feedback



How two servlets communicate with each other?..

Answer / tulasi vani

Servlets communicate with each other with the help of
RequestDispatcher objects.

RequestDispatcher rd=getServletConfig().getNamedDispatcher
(...);

... name used to identify a servlet i.e. name given in the
web.xml in the url-pattern

Is This Answer Correct ?    17 Yes 1 No

How two servlets communicate with each other?..

Answer / devendra

Servlets can communiceate with the help of RequestDispacher.

RequestDispacher rd = getRequestDispacher("passing the 2nd servlet url");
rd.forward(rquest,response);

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Servlets Interview Questions

how to pass parameter from servlet to html form

4 Answers  


Explain the difference between servlet and cgi?

0 Answers  


Some examples where generic servlet is used?

1 Answers  


How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?

2 Answers  


What do you mean by request dispatcher in servlet? Also explain its methods.

0 Answers  


Which method the Servlet container call to create the instance of the servlet?

16 Answers   emc2, JK Technosoft,


what is meant by servlet to servlet communication?

1 Answers   KPIT,


What is a Proxy Server?

1 Answers  


What is Single Threaded Model in Servlets? Explain this with an example?

10 Answers   Wipro,


How can we implement a jsp page?

0 Answers  


What are the servlet events?

0 Answers  


What is session?

0 Answers  


Categories