一个简单的网站计数器方法:
----------------------------------------------------------------
<body>
<%Integer count = (Integer)application.getAttribute("count");
if(count==null){
count=1;
}else{
count++;
}
application.setAttribute("count",count);
%>
<p>欢迎访问,您是第<%= count %>个访问者</p>
</body>---------------------------------------------------------------
本文出自 “三金先生” 博客,请务必保留此出处http://275869227.blog.51cto.com/10029174/1638773
原文地址:http://275869227.blog.51cto.com/10029174/1638773