Question - Why do we use sendredirect() method?
Answer -
The sendredirect() method basically works at the client-side. It is used to redirect the response to another resource like Servlet, JSP, HTML.
The syntax for sendredirect() method is as follows:
1 void send Redirect(URL);
Example:
1 response.sendredirect(“http://www.google.com”);