while(bool){
java.util.Date b = new java.util.Date();
if(((b.getTime()-a.getTime())/1000)>5) {
bool = false;
}
}
---------
换成Thread.sleep(5000)不行么
java.util.Date b = new java.util.Date();
if(((b.getTime()-a.getTime())/1000)>5) {
bool = false;
}
}
---------
换成Thread.sleep(5000)不行么
你的问题不是这个你的完整点代码看看,因为这点看不出问题
<meta http-equiv="refresh" content="5; URL=projectList.jsp">
<html>
<body>
五秒自动跳转
</body>
</html>
<meta http-equiv="refresh" content="5; URL=projectList.jsp"><body>
五秒自动跳转
</body>
</html>