<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head><title>统计网站人数极其当前在线人数</title></head>
<body>
<%!Integer yourNumber=new Integer(0); %>
<% if(session.isNew()){
Integer number=(Integer)application.getAttribute("Count");
if (number==null){
number=new Integer(1);}
else
{number= new Integer(number.intValue()+1);}
application.setAttribute("Count",number);
yourNumber=(Integer)application.getAttribute("Count");
}
%>
欢迎访问本站,您是第<%=yourNumber%>个访问用户。
</body>
</html>
<html>
<head><title>统计网站人数极其当前在线人数</title></head>
<body>
<%!Integer yourNumber=new Integer(0); %>
<% if(session.isNew()){
Integer number=(Integer)application.getAttribute("Count");
if (number==null){
number=new Integer(1);}
else
{number= new Integer(number.intValue()+1);}
application.setAttribute("Count",number);
yourNumber=(Integer)application.getAttribute("Count");
}
%>
欢迎访问本站,您是第<%=yourNumber%>个访问用户。
</body>
</html>