我的jsp有些问题,大家帮忙解决一下!谢谢!(那边人少)
<%@page laguage="java"%>
<%@page import="java.util.Data"%>
<html>
<head>
<title>自动刷新示例程序</title>
<%response.setHeader("refresh","5");%>
</head><body bgcolor=#cc99dd><br>
<center><h1>定时刷新实例</h1></center><br>
<center>刷新时间:5秒</center><br>
<center>当前时间是:<%=new Data()%></center>
</body>
</html>
这是我照着书抄的一个程序,不知道为什么运行不了!可能是我的环境配的有问题
<html>
<head>
<title>时间</title>
<center>当前时间是:<%=new Data()%></center>
</body>
</html>
这个程序一样运行不了!提示org.apache.jasper.JasperException: Unable to compile class for JSP..\work\localhost\_\_0002fmyjsp_0002ftoday_0002ejsptoday_jsp_0.java:55: 找不到类 java.util.Data。
out.print((new java.util.Data()).toLocaleString());
^
1 个错误
我的程序在F:\java\tomcat\webapps\ROOT\myjsp这个地址下,为什么呀?
我的tomcat和jdk里没有java.util.data这个东西呀