%@ page contentType="text/html; charset=gb2312" %>
|
|
首 页 |
医院简介 | 历史文化 | 专科介绍 | 技术力量 | 专家门诊 | 医苑风采 | 就医指南 | 保健天地 | 联系我们 |
![]()
桂ICP备03007
版权所有 广西桂林市人民医院
本站由计算机中心维护
地址:广西桂林市文明路12号 邮编:541002
<%!
synchronized void countPeople()//串行化计数函数
{ ServletContext application=getServletContext();
Integer number=(Integer)application.getAttribute("Count");
if(number==null) //如果是第1个访问本站
{ number=new Integer(1);
application.setAttribute("Count",number);
}
else
{ number=new Integer(number.intValue()+1);
application.setAttribute("Count",number);
}
}
%>
<% if(session.isNew())//如果是一个新的会话
countPeople();
Integer yourNumber=(Integer)application.getAttribute("Count");
%>
欢迎访问本站,您是第 <%=yourNumber%> 个访问用户。