• 大小: 4.89MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: Java
  • 标签: JSP  

资源简介

基于JSP学校教务管理系统 基于JSP学校教务管理系统 基于JSP学校教务管理系统 毕业设计

资源截图

代码片段和文件信息

package com;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class TestCon {

/**
 * @param args
 * @throws ClassNotFoundException 
 * @throws IllegalAccessException 
 * @throws InstantiationException 
 */
public static void main(String[] args) throws InstantiationException IllegalAccessException ClassNotFoundException {
// TODO Auto-generated method stub
/*由于我的电脑安装sqlserver后没有开放1433端口,故改用odbc方式连接sqlserver数据库*/
//Class.forName(“com.microsoft.jdbc.sqlserver.SQLServerDriver“).newInstance();
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver“).newInstance();
//String url=“jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=school“; 
String url = “jdbc:odbc:school“;
//String user=“sa“; 
//String password=“sa“; 
try {
 //Connection conn= DriverManager.getConnection(urluserpassword);
Connection conn = DriverManager.getConnection(url);
Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE
ResultSet.CONCUR_READ_ONLY);

ResultSet rs = stmt.executeQuery(“select * from administrator“);
while(rs.next()){
System.out.println(rs.getobject(1));
System.out.println(rs.getobject(2));
System.out.println(rs.getobject(3));
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();

}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-09 20:35  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\
     文件        6148  2018-06-26 14:57  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\.DS_Store
     目录           0  2018-06-26 14:57  __MACOSX\
     目录           0  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\
     文件         120  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\._.DS_Store
     目录           0  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\
     文件         832  2009-04-30 23:13  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\.classpath
     文件        6148  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\.DS_Store
     目录           0  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\
     文件         120  2018-04-09 20:36  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\._.DS_Store
     目录           0  2009-04-30 23:08  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\.myeclipse\
     文件         291  2009-05-01 10:47  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\.mymetadata
     文件        1224  2009-05-01 10:47  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\.project
     目录           0  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\
     文件        6148  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\.DS_Store
     目录           0  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\
     文件         120  2018-04-09 20:36  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\._.DS_Store
     目录           0  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\
     文件        6148  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\.DS_Store
     目录           0  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\
     文件         120  2018-04-09 20:36  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\._.DS_Store
     目录           0  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\
     文件        6148  2018-04-09 20:36  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\.DS_Store
     目录           0  2018-06-26 14:57  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\
     文件         120  2018-04-09 20:36  __MACOSX\[淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\._.DS_Store
     目录           0  2009-04-30 23:10  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\
     文件         895  2007-05-12 17:23  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\CadminBean.java
     文件        9680  2007-05-12 17:23  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\CbestPageBean.java
     文件        1510  2007-05-13 14:45  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\CchooseTestBean.java
     文件         560  2007-05-12 17:23  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\CclassBean.java
     文件         401  2007-05-12 17:23  [淇℃伅鍔炲叕]瀛︽牎鏁欏姟绠$悊绯荤粺(jsp+servlet+javabean)_school\school\src\com\sevenEleven\Beans\Clesson1Bean.java
............此处省略463个文件信息

评论

共有 条评论