What is Servlet chaining? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is Servlet chaining?

4th Feb 2018, 12:15 PM
Diwakar
Diwakar - avatar
2 Answers
+ 1
Servers handles the http requests in a Java Web service. you can write multiple servlets to do multiple tasks. But you can also tell the web server to process the request in way of assembly line. For example one servlet might do authentication part, after that other server might to actually processing part, and the third one might customise the response and so on.
4th Feb 2018, 6:37 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
+ 1
Servlet chaining is a technique in which two or more servlets can cooperate in servicing a single request.  In servlet chaining, one servlet's output is piped to the next servlet's input. This process continues until the last servlet is reached. Its output is then sent back to the client. 
4th Feb 2018, 6:40 PM
Michelangelo
Michelangelo - avatar