I have made a simple register and login page. After the user successfully registered or logged in, a message will display the result.
This is working fine, but I want it that the text is only displayed for a couple seconds. So after 5 seconds the text is gone.
int i = ps.executeUpdate();
if (i > 0) {
out.print("Successfully logged in...");
RequestDispatcher rs = request.getRequestDispatcher("/loggedin.html");
rs.include(request, response);
}
I've searched online, but I can't find anything on how to do it. Any tips / comments are welcome!