.jsp 文件
<html>
<body>
<form method="post" action="index.jsp" />
<%
String integer = request.getParameter("integer");
%>
<%
int x = 0;
try { x = Integer.parseInt("integer"); }
catch (Exception e) { x = 0; }
%>
<input type="text" name="integer" value="<%=x%>"/>
<input type="submit" value="submit" />
</form>
</body>
</html>
每次点击提交按钮时,如何添加或增加 x 输出?