<%
//获取application域中的count 的值
Integer count = (Integer)application.getAttribute("count");
//判断count是否为空
if(count!=null){
//不等于空
count++;
//存入到application域中
application.setAttribute("count", count);
}else{
//等于空
count=1;
//存入到application域中
application.setAttribute("count", count);
}
%>
javaweb项目JSP application域中设置阅读次数(多人访问次数增加)
最新推荐文章于 2022-12-28 14:59:58 发布