【正文】
博客網(wǎng)站的設(shè)計與實現(xiàn) Design and Implementation of Blog Website 學(xué) 院:信息科學(xué)與工程學(xué)院 專 業(yè) 班 級:計算機科學(xué)與技術(shù) 學(xué) 號: 學(xué) 生 姓 名: 指 導(dǎo) 教 師:(副教授) 2020 年 6 月 密級: 內(nèi)部 I 摘 要 信息時代的今天,網(wǎng)絡(luò)已經(jīng)成為人們工作、學(xué)習(xí)的一部分,不斷充實和改變著人們的生活。博客在近年來成為繼個人主頁、 BBS 之后互聯(lián)網(wǎng)公共交流的新平臺,構(gòu)建一個個性化的個人博客,可以充分地表達自己的思想,通過發(fā)表文章展示 個人才能,抒發(fā)個人情感 。 網(wǎng)友們則可以根據(jù)主題發(fā)表個人的意見,表達自己的想法,與博主進行思想交流,樂在其中。而 JSP 和 Servlet 則是兩種極具特色的動態(tài) Web 技術(shù),在許多方面并不遜色甚至超過已熟悉的 CGI 和ASP ,使用二者結(jié)合技術(shù)是 Java 技術(shù)在 Web 服務(wù)器上的擴展。因此,使用 JSP + Servlet + JavaBean 模式 開發(fā)博客網(wǎng)站最能夠體現(xiàn) JSP 技術(shù)的優(yōu)勢。 本系統(tǒng)實現(xiàn)了博客網(wǎng)站的基本功能,為博客用戶提供了一個在網(wǎng)上展現(xiàn)自己的平臺。 該 系統(tǒng)分為 前臺和后臺 , 主要實現(xiàn)了以下目標(biāo):通過發(fā)表 “我的文章”,表達博主的想法和觀點;通過上傳個人相冊,使訪問者對博主有進一步的了解;用戶可以查看文章,并可以對文章發(fā)表意見;對文章和相冊信息進行管理;展現(xiàn)最新的博客列表,方便用戶瀏覽;提供網(wǎng)站統(tǒng)計信息,使訪問者了解網(wǎng)站的基本信息。 使用 Servlet 和 JavaBean 結(jié)合技術(shù)開發(fā)本系統(tǒng),展現(xiàn)了 MVC 的設(shè)計思想,它將表示層、業(yè)務(wù)層和數(shù)據(jù)層分離,并且通過 Servlet 控制著這個頁面的流向。開發(fā)工具采用 MyEclipse 和 Macromedia Dreamweaver 8 使得頁面設(shè)計多樣且便捷。 經(jīng)過調(diào)試運行后, 系統(tǒng)可以滿足用戶創(chuàng)建個人博客的各項 基本 要求。 關(guān)鍵詞: 博客網(wǎng) ; JSP; Servlet; JavaBean II Abstract In information age, the Inter has bee part of people’s work and study, and constantly enriched and changed people’s life. In recent years, blog site has bee a new platform in public munication after personal page and BBS. Users can express their own thoughts and municate with the blogger joyfully. Besides, JSP and Servlet are two extremely unique dynamic Web technology, which are in many ways even better than CGI and ASP that we already familiar. The bination is the expansion of Java technology on Web server. Therefore the best way to embody advantages of JSP is developing a blog site in JSP + Servlet + JavaBean schema. This system implemented the basic function of blog site, and provided a platform showing themselves online. The system was divided into foreground and background application, which mainly implemented the following goals. By publishing My Article, you can express your thoughts and ideas. By uploading personal photo album, visitors can know more about the blogger. Users have access to viewing articles and publishing opinions. The blogger manages article and photo album information. List of the latest blog is shown for users to browse. Website statistical information is provided for visitors to know about the website. Using Servlet and JavaBean to develop this website showed the design philosophy of MVC, which makes presentation layer, data layer and function layers separated and control the flow of the page by using Servlet. This system used MyEclipse and Macromedia Dreamweaver 8 as development tools making page design more various and convenient. After debugging and running, the system can meet all basic demand for creating personal blog. Keywords: blog site。 JSP。 Servlet。 JavaBean III 目 錄 摘 要 ....................................................................................................................... I Abstract ......................................................................................................................... II 目 錄 ..................................................................................................................... III 第 1 章 引言 .................................................................................................................1 課題背景 ........................................................................................................1 博客的傳播特性 .............................................................................................2 博客發(fā)展趨勢 ................................................................................................3 第 2 章 相關(guān)技術(shù)介紹 .................................................................................................5 開發(fā)環(huán)境及運行平臺 ....................................................................................5 MyEclipse 簡介 ....................................................................................5 Apache Tomcat 簡介 ............................................................................5 Macromedia Dreamweaver 簡介 ..........................................................6 JSP 核心技術(shù)簡介 ..........................................................................................6 Java Servlet 技術(shù) ..................................................................................6 JavaBean 技術(shù) ......................................................................................8 SQL Server 2020 .............................................................................................8 第 3 章 需求分析 .......................................................................................................10 可行性研究 ...................................................................................................10 功能需求 ......................................................................................................11 系統(tǒng)功能結(jié)構(gòu) ...................................................................................11 系統(tǒng)流程示意圖 ................................................................................12 實體 關(guān)系圖設(shè)計 ........................................................................................14 第 4 章 系統(tǒng)設(shè)計 .......................................................................................................16 數(shù)據(jù)庫詳細設(shè)計 ..........................................................................................16 主要模塊功能設(shè)計 ......................................................................................19 用戶登錄模塊 ....................................................................................19 文章查詢模塊 ....................................................................................20 相冊管理模塊 ....................................................................................21 IV 第 5 章 詳細設(shè)計與實現(xiàn) ...............................................................