Hi All,
I have some confusion of the include method of the RequestDispatcher Interface . What is the use of this method .
Moreover if i used include method of the RequestDispatcher where the flow goes. For example
public class servlet1 extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response){
String path = "hello.jsp";
RequestDispatcher requestDispatcher = h.getRequestDispatcher(path);
requestDispatcher.include(request,response);
}
}
Now my question is that include only includes the response of the hello.jsp , but at the end doPost method where the control goes ??? or program hangs after that include as it not find any thing where it shd foward the control
Thanks in advance for prompt answer
Maneesh Chauhan