用eclipse写jsp代码,不能调用Java,问一下如何解决

这个jsp文件不能调用Java中的包

<%@ page import="java.util.Date" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
Date date = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss");
String today = df.format(date);
%>
当前时间:<%=today %>
</body>
</html>

代码全是报错

img

有没有一种可能你没有引入文件呀

你没有导入SimpleDateFormat包