Your code is completely correct, it will display the current time, formatted according to the current locale settings. As others point out incorrectly, the position of where you put this on the page (i.e., surrounded by other HTML tags) is not a problem here.
, , (://yourPath/demo.jsp), - (, Apache), (, Tomcat, Jetty,..), <% -% > JSP System.
Tomcat Jetty , JSP , Eclipse IDEA.