It is because you are posting the same request to the server as you are using RequestDispatcher method.
You need to understand the differences between RequestDispatcher.forward() vs HttpServletResponse.sendRedirect()
So you need to use the sendRedirect()
method to create a new request
response.sendRedirect("index.jsp");
Hope this helps!!