这个程序为什么有异常啊,求解
<%@ page contentType="text/html;charset=GB2312"import="java.util.Date" pageEncoding="UTF-8"%><html>
<head>
<title>My JSP 'T4.jsp' starting page</title>
</head>
<body>
<center>
<Font color=blue size=5>自cookie的存取,日期/时间数据</Font>
</center>
<HR>
<p></p>
<%
Date Now=new Date();
Cookie DateVal=new Cookie("DateVal",String.valueOf(Now.getTime()));
response.addCookie(DateVal);
Cookie temp=null;
DateVal=null;
Cookie[] cookies=request.getCookies();
int cookielen=cookies.length;
if(cookielen!=0)
{
for(int i=0;i<cookielen;i++)
{
temp=cookies[i];
if(temp.getName().equals("DateVal"))
{
%>
Cookie中<Font color=blue>DateVal</Font>
变量的值为<Font color=red>
<%=new Date(Long.parseLong(temp.getValue())) %></Font><BR>
<%
}
}
}
else
{
%>
不存在cookie<BR>
<%
}
%>
</body>
</html>