Using RequestDespatcher

Discussions

Web tier: servlets, JSP, Web frameworks: Using RequestDespatcher

  1. Using RequestDespatcher (2 messages)

    Hi,
      I think using RequestDespatcher to forward the request to another
    servlet is another form of servlet chaining.I welcome your
    views on this .
    Thanks
    Bye
    Rama.
  2. I don't think it is a type of servlet chaining.In case of chaining output of one servlet should be the input of the other one,which is not happening in request dispatcher.
    sankar.
  3. Servlet chaining was a proprietary part of JWS. Avoid it. It isn't supported by the servlet API, it was added by JWS during the servlet APIs formative years! :-)

    RequestDispatcher is the vendor neutral way to do what you want.

    Chz

    Tony