When using a dispatcher and calling .forward(), will doGet() or doPost() be called in the target servlet?

Eelco Cramer

The RequestDispatcher will call the servlet's service method. If your servlet extends javax.servlet.http.HttpServlet the same 'do' method will be called automatically by the service method, depending on the method used the original request.