This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Abhay Katekar: If I forward a request from one servlet to another using requestdispatcher.forward() then which method is called doGet() or doPost().
RequestDispatcher.forwards() is use to request from a servlet to another resource (servlet, JSP file, or HTML file). and after move this resource Servlet & JSP life cycle is start... mean Servlet call its init method and Jsp call its jspInit method and then call others Method like doGet() or doPost which is defined in that pages.