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

正文內(nèi)容

基于des加密算法的電子郵件的收發(fā)軟件的開(kāi)發(fā)畢業(yè)設(shè)計(jì)-在線(xiàn)瀏覽

2024-09-13 03:26本頁(yè)面
  

【正文】 發(fā)郵件記錄 表) 表 已發(fā)郵件記錄 表 列 名 數(shù)據(jù)類(lèi)型 長(zhǎng)度 允許空 功能描述 id int 4 主鍵 addresser varchar 50 發(fā)件郵箱 addressee varchar 50 收件郵箱 subject varchar 50 主題 訴訟 sendTime Datetime 發(fā)件時(shí)間 ( 4) tb_isread( 已讀郵件記錄 表) 表 已讀郵件記錄 表 列 名 數(shù)據(jù)類(lèi)型 長(zhǎng)度 允許空 功能描述 id int 4 主鍵 messageId varchar 100 郵件 id addressee varchar 50 收件人 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 9 頁(yè) 共 29 頁(yè) 3 系統(tǒng)實(shí)現(xiàn) 數(shù)據(jù)庫(kù)的建立 本系統(tǒng)數(shù)據(jù)庫(kù)使用 My SQL 。 圖 已發(fā)郵件記錄 表 ( 2) 已讀郵件記錄 表,其建表結(jié)果如圖 所示 。實(shí)現(xiàn)如圖 所示 。 圖 聯(lián)系人表 數(shù)據(jù)庫(kù)連接 JDBC 是 Java 語(yǔ)言訪問(wèn)數(shù)據(jù)庫(kù)的一種規(guī)范 ,是一套 API。比如建立數(shù)據(jù)庫(kù)連接、執(zhí)行 SQL 語(yǔ)句進(jìn)行數(shù)據(jù)的存取操作。接口包含在 及 包中,其中 屬于 JavaSE, 屬于 JavaEE。 下面是系統(tǒng)連接 MySql數(shù)據(jù)庫(kù)的代碼: public Connection conn = null。 // 聲明 Statement 對(duì)象的實(shí)例 public ResultSet rs = null。 // 指定資源文件保存的位置 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 10 頁(yè) 共 29 頁(yè) private static Properties prop = new Properties()。// 定義保存數(shù)據(jù)庫(kù)驅(qū)動(dòng)的變量 private static String dbUrl = jdbc: private static String dbUser = root。 public ConnDB() { // 定義構(gòu)造方法 try { // 捕捉異常 // 將 Properties 文件讀取到 InputStream 對(duì)象中 InputStream in = getClass().getResourceAsStream(propFileName)。 // 通過(guò)輸入流對(duì)象加載 Properties 文件 dbClassName = (DB_CLASS_NAME)。 // 獲取 URL dbUser = (DB_USER, dbUser)。 // 獲取密 碼 } catch (Exception e) { ()。 // 關(guān)閉 ResultSet 對(duì)象 } if (stmt != null) { // 當(dāng) Statement 對(duì)象的實(shí)例 stmt 不為空時(shí) ()。 // 關(guān)閉 Connection 對(duì)象 } } catch (Exception e) { ()。它 的設(shè)計(jì)質(zhì)量關(guān)系到給用戶(hù)的第一感覺(jué),所以它的設(shè)計(jì)很重要 。 如何進(jìn)入首頁(yè): ? 中配置: welefilelist welefile/welefile /welefilelist 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 11 頁(yè) 共 29 頁(yè) ? 首頁(yè)登錄代碼如下: 圖 首頁(yè) 設(shè)計(jì)圖 table width=87% height=162 border=0 cellpadding=0 cellspacing=0 tr td width=20% height=35 align=centerPOP3 服務(wù)器: /td td width=80% input name=host type=text id=host size=30 value= title=POP3 服務(wù)器 (如: )/td /tr tr td width=20% height=35 align=centersmtp 服務(wù)器: /td td width=80% input name=host1 type=text id=host1 size=30 value= title=stmp 服務(wù)器 (如: )/td /tr tr td height=35 align=center郵箱名: /td tdinput name=username type=text id=username size=30 value= title=郵箱名 (如: )/td /tr tr td height=35 align=center密 碼: /td tdinput name=pwd type=password id=pwd size=30 value= title=郵箱密碼 /td /tr tr td height=50 /td tdinput name=Submit type=submit class=btn_bg value=登錄 input name=Submit2 type=reset class=btn_bg value=重置 /td /tr /table /div ? Action 中主要代碼: public void login(HttpServletRequest request,HttpServletResponse response){ String host=(host)。 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 12 頁(yè) 共 29 頁(yè) String username=(username)。 Store store=(host,username,password)。 (host,host)。 //保存主機(jī)名到 session 中 (username,username)。 //保存密碼到 session 中 try { ().forward(request,response)。 //關(guān)閉與郵件接收服務(wù)器的連接 } catch (Exception e) { // TODO Autogenerated catch block ()。 try { ().forward(request, response)。 } } //showEmail(request,response,store,false)。 backgroundposition:bottom class=tableBorder table width=96% border=0 align=center cellpadding=0 cellspacing=0 tr td height=23 align=center /td td width=58% height=23 align=center /td td width=22% align=left /td /tr tr td height=28 align=center發(fā)件人: /td td colspan=2 align=leftinput name=addresser type=text id=addresser title= 發(fā) 件人 value=%=(username).toString()% readonly=yes size=56/td /tr tr td width=20% height=55 align=center收件人: /td td colspan=2 align=left textarea name=addressee cols=54 rows=3 class=wenbenkuang id=addressee title=收件人/textarea /td /tr tr td height=28 align=center主 題: /td td colspan=2 align=leftinput name=title type=text id=title title=郵件主題 size=56/td /tr tr td height=28 align=center附件 1: /td td colspan=2 align=leftinput name=adjunct type=text id=adjunct title= 附件 size=39 readonly=yes input name=Submit3 type=button class=btn_grey value=上傳附件 onClick=(39。,39。,39。)。?textName=adjunct139。39。width=350,height=15039。/td /tr tr td height=28 align=center內(nèi) 容: /td td colspan=2 align=lefttextarea name=content cols=50 rows=10/textarea/td /tr tr td height=28 align=center /td 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 14 頁(yè) 共 29 頁(yè) td colspan=2 align=leftinput name=Submit type=submit class=btn_grey value=發(fā)送 input name=Submit2 type=reset class=btn_grey value=重置 /td /tr /table/td /tr /table ? Action 中主要代碼: public int sendMail(SendM ailForm s) { int ret = 0。 //POP3 服務(wù)器 String from = ()。 //收件人 String subject = ()。 //郵件內(nèi)容 String password = ()。 //附件 1 String path1=()。39。//在 Inter 上發(fā)送郵件時(shí) 的代 碼 String mailserver =host。 //實(shí)例化 Properties 類(lèi) (, mailserver)。 //指定 SMTP 服務(wù)器需要驗(yàn)證 Session sess = (prop)。 //設(shè)置調(diào)試標(biāo)志 MimeMessage message = new MimeMessage(sess)。 // 給消息對(duì)象設(shè)置發(fā)件人 //設(shè)置收件人 String toArr[]=(,)。 for(int i=0。i++){ to_mail[i]=new InterAddress(toArr[i])。 //設(shè)置收件人 (subject)。 (sendTime)。 Multipart mul = new MimeMultipart()。 // 新建一個(gè)存放信件內(nèi)容的 BodyPart 對(duì)象 (content, text/html。 (mdp)。amp。 if(null!=mdp){ (mdp)。amp。 if(null!=mdp){ (mdp)。 // 把 mul 作為消息對(duì)象的內(nèi)容 ()。 // 以 smtp 方式登錄郵箱,第 1 個(gè)參數(shù)是發(fā)送郵件 用的郵件服務(wù)器 SMTP 地址,第 2 個(gè)參數(shù)為用戶(hù)名,第 3 個(gè)參數(shù)為密碼 (mailserver, from, password)。 //發(fā)送郵件 ()。 //保存發(fā)送日志 ret = 1。 ret = 0。} 接收郵件模塊設(shè)計(jì)
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1