【发布时间】:2019-05-20 10:50:02
【问题描述】:
我有一个 jsp 页面,其中有几个变量,所有变量在每一秒内都会有不同的值,因为后端的一些代码会改变它们。当用户加载以下页面时,将看到这些数字为零,但随着时间的推移,这些值应该更新并显示在此页面上,所以基本上它应该看起来像一个计时器。
这是我的jsp页面:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Process</title>
</head>
<body style="background-color:aquamarine;">
<h2>${info}</h2>
<h2>Number of Xs:</h2>
<h2>${numberOfX}</h2>
<h2>Completed Xs:</h2>
<h2>${completedInfo}</h2>
<h2>Elapsed time:</h2>
<h2>${elapsedTime}</h2>
<form action="/" method="get">
<table>
<tr>
<td><input type="submit" name="button1" value="BACK" /></td>
</tr>
</table>
</form>
</body>
</html>
【问题讨论】:
标签: javascript java html spring jsp