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...


Why should we go for interservlet communication?

Answers were Sorted based on User's Feedback



Why should we go for interservlet communication?..

Answer / imtiyaz

There are three major reasons to use interservlet
communication:

Direct servlet manipulation
A servlet can gain access to the other currently loaded
servlets and perform some task on each. The servlet could,
for example, periodically ask every servlet to write its
state to disk to protect against server crashes.

Servlet reuse
One servlet can use another's abilities to perform a task.
Think back to the ChatServlet from the previous chapter. It
was written as a server for chat applets, but it could be
reused (unchanged) by another servlet that needed to
support an HTML-based chat interface.

Servlet collaboration
The most common, situation involves two or more servlets
sharing state information. For example, a set of servlets
managing an online store could share the store's product
inventory count. Session tracking is a special case of
servlet collaboration.

Is This Answer Correct ?    12 Yes 1 No

Why should we go for interservlet communication?..

Answer / ravikiran.chd

inorder to continue the flow by passing the response as a
request to the next servlet

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Servlets Interview Questions

why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.

5 Answers  


when you comppile the servlet is it neccesary to restaet the tomcat server?

6 Answers   HCL,


What are the difference between HttpServlet and GenericServlets?

2 Answers  


What are its drawbacks of cgi?

0 Answers  


What is difference between cookies and httpsession?

0 Answers  


What are the functions of an intercepting filter?

0 Answers  


1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,


How can an existing session be invalidated?

0 Answers  


What are the different types of servlets?

0 Answers  


Which is better jsp or servlet?

0 Answers  


What is servletconfig?

0 Answers  


why are using HttpServlet in realtime projects and why are not using Genericservlet

2 Answers  


Categories