【JSP开源代码栏目提醒】:以下是网学会员为您推荐的JSP开源代码-3-3.jsp,希望本篇文章对您学习有所帮助。
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<body>
<%!int counter=0;
synchronized void counterFunction()
{
counter++;
}
%>
<%counterFunction();%>
网站计数器<br>
您是第<%=counter%>位访问者
</body>
</html>