I have a message that I am pushing from the controller to the JSP. I want to check if the message is not null then display it to the JSP page for a minute.
This is my controller snippet
ModelAndView mav = new ModelAndView("dashboard");
mav.addObject("message", "Login Successful");
return mav;
I am using it in the view as shown this way
<h4 align="center">${message} </h4>
How can I display it for an interval of a minute?
${message}
– blend Sep 18 '17 at 10:49${message}
On body load call function function doSomething ( ) { document.getElementById('msgid').innerHTML=''; //this code will clear you msg } – mkalsi Sep 18 '17 at 11:15