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)系我們修改或刪除,多謝。

主站蜘蛛池模板: 最新国产视频 | 久久99爰这里有精品国产 | 3p久久| 日韩视频一区二区 | 999色综合| 午夜视频一区二区 | 国产午夜精品久久久久小说 | 国产成人亚洲欧美激情 | 国产欧美一区二区三区在线看 | 美女网站黄在线看 | 欧美成人午夜视频免看 | 欧美一级特黄特黄做受 | 欧美亚洲国产精品第一页 | 2020久久精品亚洲热综合一本 | 国产情侣第一页 | 久久综合狠狠综合久久 | 欧美日韩中文一区二区三区 | 免费a级欧美黑寡妇a观看 | 伊人网站在线 | 天堂成人精品视频在线观 | 国产日韩在线 | 亚洲综合在线成人一区 | 亚州欧美| 日本久久综合网 | 精品国产一区二区三区在线观看 | 国产区精品福利在线观看精品 | 日本一区免费看 | 91短视频版在线观看免费 | 中文字幕日韩专区精品系列 | 黄 色 成 年人在线 黄 色 免 费 网站在线观看 | 69视频免费观看 | 日韩 国产 欧美视频一区二区三区 | 国产成人自拍视频在线观看 | caoporn97人人做人人爱最新 | 亚洲第一影院 | 国产成人精品午夜 | 中文国产成人精品少久久 | 久久久久久久国产精品 | 亚洲第一在线视频 | 亚洲一区在线视频 | 91精品推荐 |