【发布时间】:2012-12-02 20:12:32
【问题描述】:
我有以下问题,想检查一下是否正确。
<title>Exam</title>
</head>
<body>
<% Integer times = (Integer)(session.getAttribute("times")) ;
if (times == null) { times = new Integer(0) ; }
else { times = new Integer(times.intValue() + 1) ;
session.setAttribute("times", times) ;}
%>
times = <%=times %>
用户 A 首次访问 Exam。他收到的页面显示时间=0。假设以下事件完全按照描述的顺序发生,请完成下面的 times=_。
用户 A 从同一浏览器窗口第二次访问 Exam。他收到回 次=__。
用户 B 首次从另一台计算机访问 Exam。他收到回时间=__。
-
用户 A 第三次从另一台计算机访问 Exam。他收到回 次=__。
- 1
- 空
- 空
【问题讨论】:
标签: javascript ajax jsp session servlets