change dispatcher.forward(request, response) to response.sendRedirect("index.jsp");