File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet chaining Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet chaining" Watch "servlet chaining" New topic

servlet chaining

Pushker Chaubey
Ranch Hand

Joined: Dec 06, 2006
Posts: 53
Can any body explain me what is servlet chaining. How to make a servlet chain?

Regards,<br />Pushker<br /> <br />SCBCD 5.0 90%<br />SCWCD 5.0 89%<br />SCJP 5.0 90%
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Servlet chaining is a long gone part of the servlet spec.
It was a mechanism that would allow you to string together several servlets via the deployment descriptor to act as a pipeline.

It has been replaced by the RequestDispatcher which allows you to forward context from one servlet or JSP to another.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Reshma Reddy
Ranch Hand

Joined: Dec 21, 2006
Posts: 197
Hi pushker,
Servlet chaining is a technique in which 2 or more servlets can cooperate in servcing a single request in servlet chaining,one servlet's output is piped to next servlet's input.This process continues until the last servlet is reached .This process is nothing but a servlet chaining .

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Welcome to JavaRanch!

We're pleased to have you here with us in the servlets forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
I agree. Here's the link:
subject: servlet chaining
jQuery in Action, 3rd edition