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.
posted @ 2012-01-24 01:08  greencolor  阅读(474)  评论(0编辑  收藏  举报