• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Chaining

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
what's the difference between servlet chaining and filter chaining?
 
reply
    Bookmark Topic Watch Topic
  • New Topic