最近利用MyEclipse 10开始学习 jsp
觉得挺有意思的。。。。
<body>
<%
int count=0;
if(application.getAttribute("count")==null)
{
count=count+1;
application.setAttribute("count",count);
}else{
count=Integer.parseInt(application.getAttribute("count").toString());
count=count+1;
application.setAttribute("count",count);
}
out.print("目前,有"+count+"人已经访问过本网站!");
%>
</body>