Jsp内置对象application之统计浏览网页的次数
<% Object obj = application.getAttribute("count"); if(obj !=null){ Integer sum = (Integer)obj; sum++; application.setAttribute("count",sum); }else{ application.setAttribute("count",1); } %> <%=application.getAttribute("count")%>