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

正文內(nèi)容

java技術(shù)--畢業(yè)論文--基于java網(wǎng)絡(luò)相冊系統(tǒng)的設(shè)計與實現(xiàn)-資料下載頁

2024-11-17 23:14本頁面

【導(dǎo)讀】隨著時代的進步,社會生產(chǎn)力高速發(fā)展,新技術(shù)層出不窮信息量急劇膨脹,網(wǎng)絡(luò)化和社會化的階段。如在查找情報資料、處理銀行賬目、倉庫管理、科研生。產(chǎn)等方面,無不需要利用大量的信息資源。因此,如何有效地進行數(shù)據(jù)信息的管。理和利用,已經(jīng)成為人們普遍關(guān)注的課題。網(wǎng)絡(luò)相冊是電子相冊的一種表現(xiàn)形式,它是網(wǎng)站為用戶提供的個人相。片展示及存放平臺。一般的網(wǎng)絡(luò)相冊可以選擇“公開”或“私人”的屬性,如果。人相冊并給予支持。網(wǎng)絡(luò)相冊來保存自己的照片,這讓網(wǎng)絡(luò)相冊行業(yè)迅速的紅火起來。Java語言是定位于網(wǎng)絡(luò)應(yīng)用的程序設(shè)計語言。Java是一種簡單的、面向。一個Java類文件中,所有對方法及實例變量的參照均。按名進行,并在第一次執(zhí)行代碼時加以分辨。的影響,而仍具高效。在發(fā)布某些組件時,必須在文件中添。JavaWeb應(yīng)用的主要特征之一就是它與Context的關(guān)系。當JavaWeb應(yīng)用運行時,Servlet容器為每個Web應(yīng)用創(chuàng)建惟。目前比較成熟的技術(shù)主要有ASP、PHP和JSP。但是,該進程又細分為多個并發(fā)的

  

【正文】 oto = null。 // 設(shè)置相片信息類的對象 list = new ArrayList()。 // 將 List 集合對象進行實例化 sql = SELECT * FROM tb_photo。 // 設(shè)置對相片全部參數(shù)查詢的操作 if (condition != null) { // 當 condition 對象不為空,則根據(jù)這個條件來設(shè)置SQL 語句 sql = SELECT * FROM tb_photo WHERE + condition + 。 } connection = new JDBConnection()。 // 實例化 JDBCOnneciotn 對象 ResultSet rs = (sql)。 // 執(zhí)行查詢的 SQL 語句,將查詢的結(jié)果賦值給 ResultSet 對象 try { // 循環(huán) rs 對象 while (()) { photo = new Photo()。 // 將相片信息對象進行實例化 ((1))。 // 將第 1 個字段內(nèi)容進行賦值 ((2))。// 將第 2 個字段內(nèi)容進行賦值 ((3))。// 將第 3 個字段內(nèi)容進行賦值 ((4))。// 將第 4 個字段內(nèi)容進行賦值 ((5))。// 將第 5 個字段內(nèi)容進行賦值 ((6))。// 6 第 1 個字段內(nèi)容進行賦值 ((7))。// 將第 7 個字段內(nèi)容進 行賦值 ((8))。// 將第 8 個字段內(nèi)容進行賦值 ((9))。// 將第 9 個字段內(nèi)容進行賦值 (photo)。 // 將查詢的結(jié)果保存在 List 集合對象中 } } catch (SQLException e) { 方案論證 第 29 頁(共 46 頁) 29 ()。 } finally { ()。 // 關(guān)閉數(shù)據(jù)庫鏈接操作 } return list。 } // 以用戶名為條件,查詢該用上傳相冊的名稱 public String[] queryPhotoType(String username) { String[] type = null。 // 設(shè)置 type 數(shù)組,該數(shù)據(jù)保存用戶上傳相冊的名稱 sql = select photoType from tb_photo where username=39。 + username + 39。 group by photoType。 // 設(shè)置分組查詢的 SQL 語句 connection = new JDBConnection()。 // 將 JDBConnection 對象進行實例化 ResultSet rs = (sql)。 // 執(zhí)行查詢 SQL 語句,并將查詢結(jié)果保存在 rs 對象中 try { ()。 // rs 執(zhí)行指到最后一組數(shù)據(jù) int length = ()。 // 查詢當前記錄數(shù) type = new String[length]。 // 將數(shù)據(jù)的長度進行設(shè)置 ()。 // 將 rs 指針指到最前面的數(shù)據(jù)庫 int i = 0。 // 設(shè)置 i 變量,用來記錄循環(huán)的次數(shù) // rs 對象進行循環(huán) while (()) { type[i++] = (photoType)。// 將數(shù)據(jù)中的每個對象進行賦值 } } catch (SQLException e) { ()。 } finally { ()。 } return type。 // 將查詢的結(jié)果數(shù)組進行返回 } // 以自動編號為條件,修改水印圖片的位置 public boolean updatePhoto(Photo photo) { connection = new JDBConnection()。 // 將 JDBConnection 對象進行實例化 sql = update tb_photo set printAddress = 39。 + () + 39。 where id = 39。 + () + 39。 if ((sql)) { return true。 } else { return false。 } } // 首頁查詢操作 基于 Java網(wǎng)絡(luò)相冊系統(tǒng)的設(shè)計與實現(xiàn) 第 30 頁(共 46 頁) 30 public List queryPhotoList() { connection = new JDBConnection()。 list = new ArrayList()。 // 將 List 集合對象進行實例化 sql = select photoType,count(*) as number from tb_photo group by photoType order by number desc。 Photo photo = null。 ResultSet rs = (sql)。 try { while (()) { photo = new Photo()。 ((photoType))。 ((number))。 (photo)。 // 將查詢的結(jié)果保存在 List 集合對象中 } } catch (SQLException e) { ()。 } finally { ()。 // 關(guān)閉數(shù)據(jù)庫鏈 接操作 } return list。 } } 滾動瀏覽相片 %@ page contentType=text/html。 charset=gb2312 language=java import=.* errorPage= % jsp: import=/ jsp: import=/ html head meta equiv=ContentType content=text/html。 charset=gb2312 / title宇晨相冊 ——查詢個人相冊 /title link href=css/ type=text/css rel=stylesheet / %@ taglib prefix=c uri= % /head % if(null==(userInfo)){ ()。 } % body jsp:include page= flush=true / table width=753 height=40 border=0 align=center cellpadding=0 方案論證 第 31 頁(共 46 頁) 31 cellspacing=0 background=images/ tr td width=561 height=28 font color=EDE6BC size=1b 當 前 用 戶 :${}/b/font/td td width=192a href= class=a1請您上傳自己的相片 /a /td /tr /table table width=753 height=54 border=0 align=center cellpadding=0 cellspacing=0 background=images/ tr td height=51table width=287 height=33 border=0 align=center cellpadding=0 cellspacing=0 tr th width=287 height=33 align=center valign=bottom查詢個人相冊 /th /tr /table/td /tr /table table width=753 height=504 border=0 align=center cellpadding=0 cellspacing=0 background=images/ tr td height=347 align=center c:if test=${empty type} c:out value=您還沒有上傳自己的相片 / /c:if c:if test=${!empty type} table width=139 border=0 cellpadding=0 cellspacing=0 % String[] typePhoto=(String[])(type)。 int lineCount=5。 int typeLength=。 int rowCount=typeLength/lineCount。 if(typeLength%lineCount!=0){ rowCount++。 } List list=(List)(list)。 % tr % for(int i=0。itypeLength。i++){ 基于 Java網(wǎng)絡(luò)相冊系統(tǒng)的設(shè)計與實現(xiàn) 第 32 頁(共 46 頁) 32 % td width=149 height=153 align=center table width=128 height=142 border=0 tr td width=118 height=111 align=center % for(int j=0。j()。j++){ Photo photo=(Photo)(j)。 if(().equals(typePhoto[i])){ % a href=photoServlet?info=queryPhotoListamp。type=%=()% img src=%=()% /a % break。 } }% /td /tr tr td width=122 height=28 align=center background=images/b%=typePhoto[i]%b/td /tr /table /td % if(i%lineCount==lineCount1){ (/trtr)。 } } if(rowCount*lineCounttypeLength0){ int overCount=rowCount*lineCounttypeLength。 for(int j=0。joverCount。j++){ (td align=center width=155 /td)。 } } % /tr /table /c:if /td /tr /table jsp:include page= flush=true/jsp:include 方案論證 第 33 頁(共 46 頁) 33 /body /html 相片上傳 %@ page contentType=text/html。 charset=gb2312 language=java import=.* errorPage= % jsp: import=/ html head meta equiv=ContentType content=text/html。 charset=gb2312 / title宇晨相冊 ——個人相冊添加 /title link href=css/ type=text/css rel=stylesheet / %@ taglib prefix=c uri= % /head c:if test=${==null} %()。% /c:
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1