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

What is servlet api used for conneting database?

0 Answers  


Can I override destroy() method of Servlets?

4 Answers   Accenture,


When servlet object is created?

0 Answers  


program for RequestDispatcher in servlets?

3 Answers   Wipro,


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

0 Answers  


Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?

4 Answers   AZTEC,


What is the directory structure of a war file?

0 Answers  


Which httpsession object is used to view and manipulate information about a session?

0 Answers  


My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??

2 Answers  


Explain the role of dispatcherservlet and contextloaderlistener.

0 Answers  


What is the difference between an applet and a servlet?

15 Answers   GCEW, Miracle Solutions,


Categories