JSP-Hitcounter counts sessions.
Copyright (C) 2000 Jesper Schmitz Mouridsen.
Visit www.webappcabaret/jsm2/webapps.jsp?find=jsphcs for more info.

This program is free software; you can redistr " /> 久久国产精品免费视频,国产高清大尺度一区二区不卡,精品无人区一区二区三区a

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

jsp計(jì)數(shù)器代碼

<!--
JSP-Hitcounter counts sessions.
Copyright (C) 2000 Jesper Schmitz Mouridsen.
Visit www.webappcabaret/jsm2/webapps.jsp?find=jsphcs for more info.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.opensource.org/licenses/gpl-license.html for more details
-->


<%

BufferedReader inf = new BufferedReader(new FileReader("/path/to/counter.txt"));
int tmp = Integer.parseInt(inf.readLine());
int i=0;

try {

i = Integer.parseInt(request.getSession().getValue("tal").toString());
} catch (NullPointerException t) {i=0; }

if (i==0) {
tmp++;

PrintWriter outf = new PrintWriter(new BufferedWriter(new FileWriter("/path/to/counter.txt")));
outf.println(tmp);
outf.close();
inf.close();
request.getSession().putValue("tal", "1");
}

BufferedReader inf2 = new BufferedReader(new FileReader("/path/to/counter.txt"));
%>
<%
String zeroes="";
String hits = inf2.readLine();
inf2.close();
for (int t=0; t < 8-hits.length(); t++) {
zeroes=zeroes+"0"; }
out.println(zeroes + hits);
%>

jsp技術(shù)jsp計(jì)數(shù)器代碼,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 色婷婷色婷婷 | 亚洲激情视频 | 中文一区二区在线观看 | 综合天堂 | 久久怡红院国产精品 | 色婷婷婷婷 | 韩国在线观看一区二区三区 | 超高清欧美videos360 | 91精品日本久久久久久牛牛 | 亚洲一区二区三区在线免费观看 | 狠狠看| 91国内揄拍·国内精品对白 | 色婷婷5月| 精品视频网 | 91福利在线观看视频 | 青青国产成人久久激情911 | 亚洲成在人天堂一区二区 | 精品区| 一本大道久久香蕉成人网 | 美女特黄视频 | 偷自在线| 色色色资源站 | 黄色片网站免费在线观看 | 成人夜色视频在线观看网站 | 久久免费区一区二区三波多野 | 激情五月婷婷色 | 91短视频免费在线观看 | 4399一级成人毛片 | 欧美在线综合 | 色播在线观看 | 毛片韩国 | se色成人亚洲综合 | 亚洲午夜免费 | 看毛片视频 | 色老板在线影院 | 狠狠ady精品 | 欧美一级做一级做片性十三 | 美女一级一级毛片 | 91久久国产成人免费观看资源 | 国产精品亚洲高清一区二区 | 久久久一区二区三区不卡 |