<%@ page language= "java" import = "java.util.*" pageEncoding= "utf-8" %> |
<%! int num = 0 ; |
synchronized void add() { |
num++; |
}%> |
<% |
add(); |
%> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > |
<html> |
<head> |
<title>JSP作业</title> |
<style type= "text/css" > |
.info { |
text-align: center; |
font-family: "微软雅黑" , Verdana, sans-serif, "宋体" ; |
color: # 636 ; |
font-size: 24px; |
font-weight: bold; |
} |
</style> |
</head> |
<body> |
<div class = "info" > |
<br> |
<br> |
<br> |
你是第<%=num%>位访问该页的游客! |
</div> |
</body> |
</html> |
高级设计师
by: 小蜜锋 发表于:2012-09-26 18:33:50 顶(0) | 踩(0) 回复
jsp作业 你懂的
回复评论