<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<body style="background-color: cyan; font-size: 16px;">
<%!
int count;
StringBuffer personList;
public void judge(){
if (count == 0){
personList = new StringBuffer();
}
}
public void addPerson(String p){
if (count == 0)
personList.append(p);
else
personList.append("," + p);
count++;
}
%>
<%
String name = request.getParameter("name");
byte bb[] = name.getBytes("ios-8859-1");
name = new String(bb);
if (name.length()==0 || name.length()>10){
%>
<%
}
judge();
addPerson(name);
%>
<br/>
目前共有<%= count%>人浏览了该页面,他们的名字是:<br/>
<%= personList%>
</body>
</html>
09-13
09-13
09-13
09-13
09-13