当前时间:<%= new java.util.Date() %>

```

保存并重新部署到Tomcat,访问页面,你会看到当前的时间。

2. 使用JSP脚本

我们还可以使用`<% %>`标签来编写Java代码。

```

<%@ page contentType="