java web 程序---刷新页面次数进一步
2024-08-31 23:54:35
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> <title>My JSP 'b.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head> <body>
<%
Integer count=(Integer) session.getAttribute("count");
if(count==null){
count=1;
session.setAttribute("count",count);
}else{
count++;
session.setAttribute("count",count); } %>
<%="您是第" +count+"个访问者"%>
</body>
</html>
最新文章
- 我的Mac软件集
- 运用SET ANSI_PADDING OFF创建某个字段为自增列的表,以及插入数据
- linux exec用法总结
- spring aop配置及用例说明(1)
- 启动hbase时,hregionserver没有启动的原因
- FindControl的使用方法
- for update被锁定解锁
- Android学习笔记:ActionBar使用介绍
- DevOps之平台架构
- android中的五大布局(控件的容器,可以放button等控件)
- 随机数据生成与对拍【c++版,良心讲解】
- locust安装及其简单使用----基于python的性能测试工具
- H5取经之路——添加hover实现特定效果
- eclipse注解模板,实实在在的
- Angular2入门:TypeScript的接口
- Nginx Tcp四层反向代理
- python 基础 列表
- Kudu的卸载(cdh)
- putty安装和使用
- Raid5之后安装系统,挂载磁盘
热门文章
- hdu 5826 physics (物理数学,积分)
- hdu 5800 To My Girlfriend(背包变形)
- linux系统参数统计脚本
- iscroll中文文档
- Tornado 自定义session,与一致性哈希 ,基于redis 构建分布式 session框架
- VERIFY DATABASE 正在异常终止。 (Microsoft SQL Server,错误: 3169)
- RxJava 1.x 笔记:组合型操作符
- Android Studio单独生成apk
- Android studio 添加背景图片问题
- MySQL基础(《MySQL必知必会》简单总结)