In JSP, you can simply put Date Time as below.
<HTML><BODY>Hello! The time is now <%= new java.util.Date() %></BODY></HTML>