freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于javaoracle學(xué)生信息管理系統(tǒng)的設(shè)計與實現(xiàn)畢業(yè)設(shè)計論文-資料下載頁

2025-06-22 00:25本頁面
  

【正文】 , st[7])。().setAttribute(teducation, st[8])。().setAttribute(tmajor, st[9])。().setAttribute(tgover, st[10])。().setAttribute(tentertime, st[11])。().setAttribute(tposition, st[12])。齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)32 (教師”+st[1]+“登錄到管理系統(tǒng))。RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。} else {String message = 。(message, 用戶名或密碼錯誤,請重新輸入!)。RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。}} else if ((admin)) {String id = id。if ((getPassword(request, response, id, kind,username))) {// (resulset,// (request, response, username))。String st[] = new String[1]。st = (request, response, id, kind, username)。().setAttribute(id, st[0])。(管理員”+st[0]+“登錄到管理系統(tǒng))。RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。} else {String message = 。(message, 用戶名或密碼錯誤,請重新輸入!)。RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。}} else {String message = 。(message, 請選擇類型!)。RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。}}public String getPassword(HttpServletRequest req, HttpServletResponse res,String id, String kind, String username) throws ServletException,IOException {齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)33 sqlBean db = new sqlBean()。String pw = 。String sql = select password from + kind + where + id + = + username。(username+請求登錄!)。try {ResultSet rs = (sql)。(查詢密碼是否正確......)。while (()) {pw = (password)。(username+登錄成功!)。return pw。}} catch (Exception e) {(())。}return pw = eorro。}// 獲得 用戶的 所有 信息!public String[] getMessage(HttpServletRequest req, HttpServletResponse res,String id, String kind, String username) throws ServletException,IOException {sqlBean db = new sqlBean()。String sql = select * from +kind+ where +id+ = + username。String[] str = new String[30]。try {ResultSet rs = (sql)。(查詢+username+所有基本信息)。while (()) {for(int x=0。x=。x++){str[x] = (x+1)。}}} catch (Exception e) {}return str。}// 根據(jù) 學(xué)號 獲得 所有 已選課程,并 分行 輸出?。↓R魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)34 public ResultSet getCourseMessage(HttpServletRequest req, HttpServletResponse res, String username) throws IOException,SQLException {sqlBean db = new sqlBean()。String sql = select , from teacher t,corse c,sct s where = and = and =+username+ order by 。ResultSet rs0 = null。try {rs0 = (sql)。(查詢+username+所有課程信息)。if(()){return rs0。}} catch (Exception e) {}return null。}}數(shù)據(jù)庫連接關(guān)鍵程序代碼如下:package 。import .*。 public class sqlBean{public Connection conn=null。 public ResultSet rs=null。 //private String DatabaseDriver=。 public static final String DBDRIVER =。public static final String DBURL = jdbc:oracle:thin:@localhost:1521:ORCL 。public static final String DBUSER = suning。public static final String DBPASSWORD = suning。//DataSource 數(shù)據(jù)源名稱 DSN public sqlBean(){/////構(gòu)造函數(shù) try{ (DBDRIVER)。 } catch( e){ (加載驅(qū)動器有錯誤:+( ))。 (執(zhí)行插入有錯誤:+())。//輸出到客戶端 齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)35 } } //對數(shù)據(jù)庫 進行 添加public int executeInsert(String sql){ int num=0。try{ //conn = (jdbc:odbc:ClassDB,limq,123)。conn = (DBURL,DBUSER,DBPASSWORD)。Statement stmt=( )。 num=(sql)。 } catch(SQLException ex){ (執(zhí)行插入有錯誤:+() )。 (執(zhí)行插入有錯誤:+())。//輸出到客戶端 }CloseDataBase()。return num。} public int executeUpdate(String sql){ int num=0。try{ //conn = (jdbc:odbc:ClassDB,limq,123)。conn = (DBURL,DBUSER,DBPASSWORD)。Statement stmt=( )。 num=(sql)。 } catch(SQLException ex){ (執(zhí)行插入有錯誤:+() )。 (執(zhí)行插入有錯誤:+())。//輸出到客戶端 }CloseDataBase()。return num。} // display data 查詢 (學(xué)會用英文注釋) public ResultSet executeQuery(String sql){ rs=null。 try{ conn = (DBURL,DBUSER,DBPASSWORD)。齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)36 Statement stmt=( )。 rs=(sql)。} catch(SQLException ex){ (執(zhí)行查詢有錯誤:+() )。 (執(zhí)行查詢有錯誤:+())。 //輸出到客戶端 } return rs。 } // delete data public int executeDelete(String sql){ int num=0。try{ //conn = (jdbc:odbc:ClassDB,limq,123)。conn = (DBURL,DBUSER,DBPASSWORD)。Statement stmt=( )。 num=(sql)。 } catch(SQLException ex){ (執(zhí)行刪除有錯誤:+() )。 (執(zhí)行刪除有錯誤:+())。 //輸出到客戶端 } CloseDataBase()。return num。} public void CloseDataBase(){ try{ ()。 } catch(Exception end){ (執(zhí)行關(guān)閉 Connection 對象有錯誤:+( ) )。 (執(zhí)行執(zhí)行關(guān)閉 Connection 對象有錯誤:有錯誤:+())。 //輸出到客戶端 } } } 用戶信息查詢關(guān)鍵程序代碼如下:齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)37 package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class Select extends HttpServlet{protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {// TODO Autogenerated method stub(request, response)。}protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { try {ResultSet res = ((String)().getAttribute(sno))。(hasCourse, res)。} catch (SQLException e) {// TODO Autogenerated catch block()。}RequestDispatcher rd = getServletContext().getRequestDispatcher(/)。(request, response)。}public ResultSet getCourseMessage(String username) throws IOException,SQLException {sqlBean db = new sqlBean()。String sql = select , from teacher t,corse c,sct s where = and = and =+username+ order by 。齊魯工業(yè)大學(xué) 2022 屆本科畢業(yè)設(shè)計(論文)38 ResultSet rs0 = null。try {rs0 = (sql)。if(()){return rs0。}} catch (Exception e) {}return null。}public ResultSet getAllCourseMessage() throws IOException,SQLException {sqlBean db = new sqlBean()。String sql = select o,ame,croom,tname from corse,teacher where = order by o。ResultSet res = null。try {res = (sql)。if(()){return res。}} catch (Exception e) {}finally{}return null。}}
點擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1