资源简介
web课设程序代码,可以运行,网站流量统计,jsp页面
代码片段和文件信息
package feng;
import java.sql.*;
import java.io.*;
import java.util.*;
import java.awt.Toolkit;
import java.awt.*;
public class jdbc {
Connection conn = null ;//设置你的数据库用户名和密码:
String use = ““ ;
String pass = ““ ;
public java.sql.Connection getConn(){
try{
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver“);
String url=“jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/count/count.mdb“; //注意修改路径
conn= DriverManager.getConnection(urlusepass);
}
catch(Exception e){
e.printStackTrace();
}
return this.conn ;
}
public String ex_chinese(String str){
if(str==null){ str =““ ; }
else{
try {
str = new String(str.getBytes(“iso-8859-1“)“gb2312“) ;
}
catch (Exception ex) { }
}
return str ;
}
public String gettime() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“yyyy-MM-dd HH“) ;
datestr = df.format(new java.util.Date()) ;
}
catch (Exception ex) { }
return datestr ;
}
public String getHour() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“H“) ;
datestr = df.format(new java.util.Date()) ;
}
catch(Exception ex) { }
return datestr ;
}
public String getMonth() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“yyyy-M“) ;
datestr = df.format(new java.util.Date()) ;
}
catch (Exception ex) { }
return datestr ;
}
public String getStrMonth() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“M“) ;
datestr = df.format(new java.util.Date()) ; }
catch (Exception ex) { }
return datestr ;
}
public String getStrDay() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“d“) ;
datestr = df.format(new java.util.Date()) ;
}
catch (Exception ex) { }
return datestr ;
}
public String getDay() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“yyyy-M-d“) ;
datestr = df.format(new java.util.Date()) ; }
catch (Exception ex) { }
return datestr ;
}
public String getWeek() {
String datestr = ““ ;
try {
java.text.DateFormat df = new java.text.SimpleDateFormat(“E“) ;
datestr = df.format(new java.util.Date()) ; }
catch (Exception ex) { }
return datestr ;
}
public int getTime1ToTime2(String Time1) {
String StrDate=Time1;
int i=StrDate.indexOf(“-“);
String ip1=StrDate.substring(0i);
StrDate=StrDate.substring(i+1StrDate.length());
i=StrDate.indexOf(“-“);
St
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-10-19 17:54 网站流量统计web(jsp)源代码\
目录 0 2012-10-19 17:54 网站流量统计web(jsp)源代码\count\
文件 6418 2012-01-07 11:13 网站流量统计web(jsp)源代码\count\FAddress.jsp
文件 6422 2012-01-07 10:46 网站流量统计web(jsp)源代码\count\FBrowser.jsp
文件 6548 2012-01-07 11:14 网站流量统计web(jsp)源代码\count\FCounter.jsp
文件 6246 2012-01-07 11:14 网站流量统计web(jsp)源代码\count\FIpone.jsp
文件 6465 2012-01-07 11:14 网站流量统计web(jsp)源代码\count\FIptwo.jsp
文件 6496 2012-01-07 11:15 网站流量统计web(jsp)源代码\count\FReferer.jsp
文件 6391 2012-01-07 11:16 网站流量统计web(jsp)源代码\count\FScreen.jsp
文件 6418 2012-01-07 11:16 网站流量统计web(jsp)源代码\count\FSystem.jsp
文件 3841 2012-01-09 09:03 网站流量统计web(jsp)源代码\count\FVisitor.jsp
文件 1955 2012-01-07 12:05 网站流量统计web(jsp)源代码\count\Fuserdata.jsp
目录 0 2012-10-19 17:54 网站流量统计web(jsp)源代码\count\Image\
文件 91 2003-04-17 23:10 网站流量统计web(jsp)源代码\count\Image\Bar.gif
文件 829 2003-02-11 14:32 网站流量统计web(jsp)源代码\count\Image\Bar1.gif
文件 881 2003-02-11 14:32 网站流量统计web(jsp)源代码\count\Image\Failure.gif
文件 21640 2003-02-11 18:21 网站流量统计web(jsp)源代码\count\Image\Header.gif
文件 272 2003-03-15 02:02 网站流量统计web(jsp)源代码\count\Image\OK代替.GIF
文件 879 2003-02-11 14:32 网站流量统计web(jsp)源代码\count\Image\Success.gif
文件 650 2003-03-20 20:18 网站流量统计web(jsp)源代码\count\Image\ok.gif
文件 1306 2003-03-19 09:33 网站流量统计web(jsp)源代码\count\Image\oka.gif
文件 633 2003-03-23 17:29 网站流量统计web(jsp)源代码\count\li
文件 6655 2012-01-07 11:18 网站流量统计web(jsp)源代码\count\StatDay.jsp
文件 6740 2012-01-07 11:29 网站流量统计web(jsp)源代码\count\StatMonth.jsp
文件 6857 2012-01-07 11:18 网站流量统计web(jsp)源代码\count\StatWeek.jsp
文件 6684 2012-01-07 11:18 网站流量统计web(jsp)源代码\count\StatYear.jsp
目录 0 2012-01-09 10:26 网站流量统计web(jsp)源代码\count\WEB-INF\
目录 0 2012-01-09 10:26 网站流量统计web(jsp)源代码\count\WEB-INF\classes\
目录 0 2012-10-19 17:54 网站流量统计web(jsp)源代码\count\WEB-INF\classes\feng\
文件 4902 2012-01-06 09:54 网站流量统计web(jsp)源代码\count\WEB-INF\classes\feng\jdbc.class
文件 6130 2012-01-06 09:51 网站流量统计web(jsp)源代码\count\WEB-INF\classes\feng\jdbc.java
............此处省略60个文件信息
- 上一篇:JAVA商品库存管理系统
- 下一篇:android手机安全卫士--源码
相关资源
- 商务会员管理系统
- Java超市购物系统源码135115
- Oracle+11g+11.2.0.1.0+JDBC_ojdbc6.jar
- 文件上传下载132211
- 北京医院预约助手APP(bj114guahao.apk)
- 安卓天气预报项目源码
- android网上商城112263
- javaee图书管理系统85116
- Eclipse3.2.1中文版(11)
- 海康威视Java2017-11开发包web版,内网亲
- PrinterShare_V11.22.apk (2019/07/17)
- Javaweb购物车119915
- Android 网络调试助手118323
- Android 计时器117062
- JSP+MySQL学生成绩管理系统116603
- jackson-all-1.9.0.jarjackson-all-1.9.9.jarjack
- java投票系统114175
- android游戏113320
- Android坦克大战源代码112801
- android计算器110537
- 超市购物系统
- mysql-connector-java-8.0.11.zip
- mysql-connector-java-8.0.11
- oracle11g驱动jar包 绿色版
- 802.11s_D12.0 Mesh Networking
- ojdbc6-11.2.0.3.0.jar
- TeamViewer QuickSupport QS Add-On: Huawei 11.0
- Java语言程序设计第10版基础篇复习题
- java web学生信息管理系统61183
- ojdbc6-11.1.0.7.0.jar
评论
共有 条评论