sendRedirect() Method Example in Servlet

We have seen earlier, the usage of include(), forward and their 16 differences. Now let us see how to use sendRedirect() method. The sendRedirect(String URL) is defined in javax.servlet.http.HttpServletResponse interface. Let us see what Java API says about sendRedirect() method signature: void sendRedirect(String location) throws IOException: Sends a temporary redirect response to the client using …

sendRedirect() Method Example in Servlet Read More »