import jsp

<%@ page import="java.util.*" %>
<HTML>
<BODY>
<%
    System.out.println( "Evaluating date now" );
    Date date = new Date();
%>
Hello!  The time is now <%= date %>
</BODY>
</HTML>

=======================

The first line in the above example is called a "directive".  A JSP "directive" starts with <%@ characters.
原文地址:https://www.cnblogs.com/greencolor/p/2329081.html