The moose likes Servlets and the fly likes what is servlet chaining? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "what is servlet chaining?" Watch "what is servlet chaining?" New topic

what is servlet chaining?

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

what is the difference between servletchaining and RequestDispatching?

Advance Thanx.

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
The response object from one servlet is passed as request to another Servlet, this is called as Servlet Chaining.
the getServlet() method that is used in Servlet chaining is deprecated and Sun's Javadoc specifies clearly that the business
logic to be shared by servlets to be put in a separate
non-servlet class. Also it would be good to put the
logic in separate class and just invoke the method
when required.
Learning is the spirit..
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
The concept of servlet chaining has given way to the use of Filters in the latest API. See the javax.servlet package for Filter related interfaces.
I agree. Here's the link:
subject: what is servlet chaining?
It's not a secret anymore!