Forwarding the HttpServletRequest to another servlet
843841May 9 2007 — edited May 9 2007hi,
is there a way to forward the HttpServletRequest object (the parameter in doPost method) to another servlet in another machine
currently I have a servlet class in a machine. When the doPost() method of this class is invoked, I simply want the HttpServletRequest object to be redirected to another servlet object (which is located in a different machine, hence different IP)
I have tried creating an HttpClient object from the common.httpclient.jar, but the servlet just throws an exception. I'm assuming HttpClient cannot be used inside a class that extends HttpServlet.