SyntaxFix
Write A Post
Hire A Developer
Questions
As you can see, the response is still HTTP/1.1 200 OK. To indicate a redirect, you need to send back a 302 status code:
HTTP/1.1 200 OK
response.setStatus(HttpServletResponse.SC_FOUND); // SC_FOUND = 302