相关代码 |
|
int count=1; String name=request.getParameter("name"); try{ count=Integer.parseInt((application.getAttribute(name).toString())); }catch(Exception e){ } out.print("欢迎光临!该页面已被访问"+count+"次。"); count++; application.setAttribute(name,new Integer(count)); %>
相关资源 |
|