Results 1 to 3 of 3
  1. #1
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default servlet chaining

    Hi guys, I'm starting with servlet.
    can somebody tell me how servlet chaining is done?
    how to use requestdispatcher, some sample code will be great help.
    is their any same kind of mechanism in cgi?

  2. #2
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    try it
    Java Code:
     RequestDispatcher  dispatcher = req.getRequestDispatcher("yourJSPorServlet");
    dispatcher.forward(req, res);

  3. #3
    ani01104 is offline Member
    Join Date
    Jan 2012
    Rep Power

    Default Re: servlet chaining

    Servlet Chain:
    Servlet chain is a mechanism provided by java where a servlet can call another servlet.
    Say i have request that is handled by multiple servlets. So the first servlet takes the request process it and send it the second servlet. The output of the previous servlet is input of the next/current servlet.
    By this way the last servlet send the response to the user.

    I wrote an article on servlet chaining
    How to write a servlet chain | Ask QTP
    Hope this will help further

Similar Threads

  1. Servlet vs JSP
    By javaplus in forum Java Servlet
    Replies: 5
    Last Post: 06-26-2008, 11:19 PM
  2. Hash table with separate chaining
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-12-2008, 09:42 PM
  3. Regarding Servlet
    By Sudha in forum New To Java
    Replies: 1
    Last Post: 02-12-2008, 01:44 AM
  4. How to mix servlet & JSP
    By Swamipsn in forum Java Servlet
    Replies: 1
    Last Post: 08-08-2007, 01:57 AM
  5. Replies: 1
    Last Post: 08-07-2007, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts