I use jsp and servlets and I would like to execute a RequestDispatcher after 5 seconds.
request.getRequestDispatcher("/WEB-INF/page.jsp").forward(request, response);
Is there some kind of wait.time(5000)
?
edit: I still would be interested in a solution!
Simply use Thread.sleep(5000) or the below approach
Hope this solves your expectations.