Servlet sendRedirect

sendRedirect() is the method of the HttpServletResponse interface which is used to redirect response to another resource. Syntax: response.sendRedirect(relative url); Difference between sendRedirect and RequestDispatcher.              sendRedirect           RequestDispatcher Creates a new request from the client browser for the resource. Accept relative URLs so control can go inside or outside the server. The new URL … Read more