<!-- 统计页面被访问次数 -->
<%
Object count=application.getAttribute("count");
if(count==null){
application.setAttribute("count",new Integer(1));
}else{
Integer i=(Integer)count;
application.setAttribute("count",i.intValue()+1);
}
Integer icount=(Integer)application.getAttribute("count");
out.print("页面被访问了 "+icount.intValue()+"次");
%>