java servlet redirect page code example Example: servlet redirect java response.sendRedirect("login.jsp");