<%
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")%>

Jsp内置对象application之统计浏览网页的次数-LMLPHP

05-12 19:53