<%@ page language="java" import="java.util.*,java.sql.*,com.abin.db.connection.*,java.text.*,com.abin.test.connection.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Javascript time</title>
<meta http-equiv="Refresh" content="1" url="">
</head>
<script type="text/javascript">
</script>
<body >
<div id="it" ></div>
<br/>
<span id="its"></span>
<br/>
jsp时间
<%
Timestamp time=new Timestamp(System.currentTimeMillis());
out.println(time.toString());
%>
</body>
</html>
<meta http-equiv= "Refresh " content= "1 " url= " "> //加入 <head> </hean> 之间
<%
Timestamp time = new Timestamp(System.currentTimeMillis());
out.println(time.toString());
%>