这是一个jsp页面获取的动态时间
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="111.jsp" method="post" onsubmit="return check(this)">
<script type="text/javascript">
function display(clock){
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth();
var date = now.getDate();
var hour = now.getHours();
var minu = now.getMinutes();
var sec = now.getSeconds();
month = month+1;
var time = year+"-"+month+"-"+date+" "+hour+":"+minu+":"+sec;
clock.innerHTML = time;
}
window.onload=function(){
window.setInterval("display(clock)",1000);
}
</script>
<table>
<tr>
<td>
<div id="clock"></div>
</td>
</tr>
<tr>
<td>
<input type="submit" value="提交">
</td>
</tr>
</table>
</form>
</body>
</html>
如何把这个获取到的时间提交到另一个页面显示出来?获取页面需要怎么改?接收页面应该怎么写?我写的“out.print(request.getParameter("clock"));”表示结果为null。