• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is servlet chaining?

 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between servletchaining and RequestDispatching?

Advance Thanx.
 
Gayathri Prasad
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic