File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

what is servlet chaining?

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

what is the difference between servletchaining and RequestDispatching?

Advance Thanx.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 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.
Cheers,
Gaya3
------------------------------------
Learning is the spirit..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is servlet chaining?