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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a servlet is not properly initialized, what exception may be thrown?

1115


What is the use of httpservletresponsewrapper?

912


how many jsp scripting elements are there and what are those?

966


What is servlet and how it works?

914


List some life cycle methods of a servlet.

1009


How do you configure a centralized error handler in servlets?

1035


Explain the steps involved in placing a servlet within a package?

990


What do you mean by the servlet chaining?

1007


Why do you use session tracking in httpservlet?

1071


What is the disadvantage of cookies?

949


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

1041


Can you send an authentication error from a servlet?

925


What’s the difference between genericservlet and httpservlet?

1021


What are different ways for authentication of servlet?

1009


How does java thread pool work?

1020