Why should we go for interservlet communication?
Answers were Sorted based on User's Feedback
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 |
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 |
If servlet receives multiple requests, how many objects will it create?
what is the difference between do get/dopost
How do you pass the data from one servlet to another servlet?
What are the various ways of session supervision in servlets?
What is the difference between ExecuteUpdate and ExecuteQuery?
Why do we have servlet listeners?
How do we go with database connection and log4j integration in servlet?
Name the servers that can be used to develope and deploy Servlets?
What is a servlet context object?
What are all the ways for session tracking?
How is the get () method different from the post() method?
What is Client-Server Computing?