Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Forwarding the HttpServletRequest to another servlet

843841May 9 2007 — edited May 9 2007
hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2007
Added on May 9 2007
11 comments
1,062 views