<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <html> <head> <title>page指令import属性实例</title> </head> <body> <% Date date=new Date(); %> <h1>page指令import属性实例演示!</h1> <p>现在的时间是:<%=date %></p> </body> </html>