What is the difference between response.sendRedirect() and request.getRequestDispatcher().forward(request,response)
To simply explain the difference, response.sendRedirect(“login.jsp”); doesn’t prepend the contextpath (refers to the application/module in which the servlet is bundled) but, whereas request.getRequestDispathcer(“login.jsp”).forward(request, … Read more