Sending Redirect (sendRedirect)
Learn Sending Redirect (sendRedirect) (Handling Req & Res, JSP Servlets) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is sendRedirect()? sendRedirect() is used to redirect the browser to another URL. • URL changes in browser • New request is created • Client-side redirection • Uses HTTP status code • Request data is not preserved