資源簡介
《JSP Web開發案例教程》課件、課堂演示案例、課后題答案。很全,很好用
有一個公告管理系統貫穿其中
代碼片段和文件信息
package?com.bean;
import?java.sql.*;
public?class?ConnectionManager?{
private?static?final?String?DRIVER_CLASS?=?“com.microsoft.sqlserver.jdbc.SQLServerDriver“;
private?static?final?String?DATAbase_URL?=?“jdbc:sqlserver://localhost:1433;DatabaseName=notice“;
private?static?final?String?DATAbase_USRE?=?“sa“;
private?static?final?String?DATAbase_PASSWORD?=?“123456“;
/**
?*?返回連接?
?*/
public?static?Connection?getConnection()?{
Connection?dbConnection?=?null;
try?{
Class.forName(DRIVER_CLASS);
dbConnection?=?DriverManager.getConnection(DATAbase_URLDATAbase_USRE?DATAbase_PASSWORD);
}?catch?(Exception?e)?{
e.printStackTrace();
}
return?dbConnection;
}
/**
?*?關閉連接
?*/
public?static?void?closeConnection(Connection?dbConnection)?{
try?{
if?(dbConnection?!=?null?&&?(!dbConnection.isClosed()))?{
dbConnection.close();
}
}?catch?(SQLException?sqlEx)?{
sqlEx.printStackTrace();
}
}
/**
?*?關閉結果集
?*/
public?static?void?closeResultSet(ResultSet?res)?{
try?{
if?(res?!=?null)?{
res.close();
res?=?null;
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}
}
/**
?*關閉語句
?*/
public?static?void?closeStatement(PreparedStatement?pStatement)?{
try?{
if?(pStatement?!=?null)?{
pStatement.close();
pStatement?=?null;
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}
}
public?static?void?closeStatement(Statement?Statement)?{
try?{
if?(Statement?!=?null)?{
Statement.close();
Statement?=?null;
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???10949632??2013-07-09?00:51??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP01.ppt
?????文件????2996224??2013-03-18?22:37??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP02.ppt
?????文件????5678080??2013-04-01?12:45??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP03.ppt
?????文件????2368000??2013-07-09?22:34??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP04.ppt
?????文件????6361600??2013-05-03?10:06??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP05.ppt
?????文件?????268288??2013-04-23?00:35??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP06.ppt
?????文件????4622848??2013-07-10?00:16??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP07.ppt
?????文件????1068032??2013-05-29?23:00??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP08.ppt
?????文件?????392704??2013-06-12?21:20??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP09.ppt
?????文件?????562688??2013-06-14?12:18??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課件\TP10.ppt
?????文件??????14066??2013-08-20?21:46??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第一章課后題答案.docx
?????文件??????13592??2013-05-28?23:49??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第七章課后題答案.docx
?????文件??????14089??2013-02-21?17:38??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第三章課后題答案.docx
?????文件??????13645??2013-02-21?21:20??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第九章課后題答案.docx
?????文件??????12095??2013-02-21?15:06??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第二章課后題答案.docx
?????文件??????13464??2013-02-21?18:19??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第五章課后題答案.docx
?????文件??????13608??2013-02-21?21:02??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第八章課后題答案.docx
?????文件??????13470??2013-02-21?20:22??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第六章課后題答案.docx
?????文件??????13690??2013-02-21?21:34??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第十章課后題答案.docx
?????文件??????13403??2013-02-21?17:58??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課后題答案\第四章課后題答案.docx
?????文件????3145728??2013-08-20?23:18??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\notice.mdf
?????文件????1048576??2013-08-20?23:18??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\notice_log.ldf
?????文件??????????0??2013-08-20?22:32??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件??????97767??2013-08-21?21:40??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件????????830??2013-08-21?21:40??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件??????16670??2013-08-21?21:40??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件???????7557??2013-08-21?21:36??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件???????2047??2012-09-16?22:14??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件???????1989??2012-09-16?22:14??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
?????文件???????1486??2012-09-16?22:14??《JSP?Web開發案例教程》課件、課堂演示案例、課后題答案\課堂演示案例\示例\.me
............此處省略2228個文件信息
- 上一篇:手機淘寶客APP源碼,帶后臺
- 下一篇:分詞工具ANSJ 1.3版本
評論
共有 條評論