不需数据库对浏览人数进行统计方法
采集日期:2008-4-21作者:破风(注:本数据由系统自动采集,内容与BHCODE无关)
在jsp页面调用一个后台类,写文件:
package com.service; import java.io.*; public class counter ...{ private String currentRecord; private BufferedReader file; private String path; public counter() ...{ currentRecord = null; } public String ReadFile(String filePath) throws FileNotFoundException ...{ path = filePath; file = new BufferedReader(new FileReader(path)); String returnStr = null; try ...{ currentRecord =