Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Chaining

 
jyothi godavarthy
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody give me a good definition of Servlet Chaining along with an example, links to sites with this info are also welcome.
Thanks in advance.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term "Servlet Chaining" is out of date now. You should be looking for information on the Filter and FilterChain APIs and for RequestDispatcher forward and include processes.
Bill
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe, but the term is still relevant. Typically a request comes in for a servlet, that servlet executes and pushes out a response, perhaps via a JSP. Servlet chaining is just used to describe the process whereby a servlet will do some work, then hand off processing to another servlet and so on. This is generally done with the RequestDispatcher include() and forward() methods.
Even though many people now use web application frameworks such as Struts and WebWork, you can still achieve the same result by chaining together actions.
 
venu sha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jyothi godavarthy:
Can anybody give me a good definition of Servlet Chaining along with an example, links to sites with this info are also welcome.
Thanks in advance.

hiiii,
well in serv chaining we configure the servlet engine to do the chaining.During setup we specify the order in which these servlets are invoked.nad this non standard feature is not supported by most of the web containers today.
ok
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Simon Brown:
Even though many people now use web application frameworks such as Struts and WebWork, you can still achieve the same result by chaining together actions.

Which internally will have the framework chain servlets together as likely as not
 
Sri Gnana
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
what's the difference between servlet chaining and filter chaining?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic