How do I pass a request object of one servlet as a request object to another servlet?
Use a Request Dispatcher. 88) I call a servlet as the action in a form, from a jsp. How can I redirect the response from the servlet, back to the JSP? (RequestDispatcher.forward will not help in this case, as I do not know which resource has made the request. request.getRequestURI will return the uri as contained in the action tag of the form, which is not what is needed.) You’ll have to pass the JSP’s URI in to the servlet, and have the servlet call sendRedirect to go back to the JSP.