當前位置:文思屋>學習教育>畢業論文>

基於Struts框架的新聞釋出設計與實現JSP

文思屋 人氣:3.3W
畢業論文

基於Struts框架的新聞釋出設計與實現
        

基於Struts框架的新聞釋出設計與實現JSP

摘要:人們的生活已經離不開新聞,新聞讓我們瞭解社會,提供最新的諮訊,瞭解各行各業的發展,傳統的傳播新聞的途徑是報紙,收音機,電視。現在電腦已經進入了平常百姓家庭,網路更是發達。因此網路上傳播新聞也應運而生。越來越多的企業建立了自己的WWW網站,企業通過網站可以展示產品,釋出最新動態,與使用者進行交流和溝通,與合作伙伴建立聯絡,以及開展電子商務等。其中新聞管理系統是構成企業網站的1個重要組成部分,它擔負著雙層作用,1方面可以用來動態釋出有關新產品或新開發專案,另1方面又可以及時向顧客公告企業經營業績、技術與研發進展、特別推薦或優惠的工程專案、產品和服務,從而吸引顧客,擴大顧客群。
本設計做的是1個當今流行的開源架構Strut開發的新聞釋出系統,主要運用到JSP技術。系統的主要任務是實現新聞的自動釋出,新聞的管理。Struts框架具有元件的模組化,靈活性和重用性的優點,同時簡化了基於MVC的web應用程式的開發。
關鍵詞: Struts框架;新聞管理;JSP;網站
 

The Design and Implement of  Web News Distribution  Based on Struts Frame
 

Abstract : Now, people could not leave the news in peoples life, the news lets us understand the society, provides newly consults the news, the understanding all the various trades and occupations development, the traditional dissemination news way is the newspaper, the radio,and the television. Now the computer already entered the ordinary common peoples’ family, the network is highly developing. Therefore in the network disseminates the news is arise at the historic moment also.
This design makes use of popular opens source construction Strut development news distribution system. The system primary mission realizes the news automatic issue, the news management. The Struts frame has the module modulation, the flexibility and entrusts with heavy responsibility the merit, simultaneously simplified based on the MVC web application procedure
Keywords: Struts Frame;News Management; JSP;Website

目 錄
前言 5
1 基本知識與基本原理 6
1.1 Web工作原理 6
1.2 Java介紹 7
1.3 JSP介紹 10
1.4 Tomcat 伺服器介紹 11
1.5 Struts架構簡介 12
1.5.1經典的MVC設計模式 12
1.5.2傳統的JSP設計模式 13
1.5.3 Struts1.2的開發框架 15
1.6 oracle9i介紹 16
2 需求分析 19
2.1功能需求 19
2.2 效能需求 20
2.3 資料需求及簡單的E-R圖 20
2.3.1 資料需求 20
2.3.2 簡單的E-R圖 20
2.4 資料關係模型 20
3 系統概要設計 22
3.1 系統架構設計 22
3.2 整體設計 22
4 詳細設計及編碼實現 25
4.1 系統詳細設計 25
4.2資料庫資料字典 25
4.2.1 資料資訊表 25
4.2.2 建立資料表的指令碼 27
4.3開發環境及平臺搭建 28
4.3.1開發環境介紹 28
4.3.2開發環境搭建 28
4.4新聞中心前臺顯示模組 29
4.4.1 實現效果 29
4.4.2 使用者表示層 30
4.4.3業務邏輯層 35
4.4.4 控制處理層 39
4.5 新聞中心後臺管理模組 43
4.5.1 實現效果 43
4.5.2 使用者表示層 43
4.5.3業務邏輯層 47
4.5.4控制處理層 50
5 系統執行及測試 57
5.1系統測試環境 57
5.2 系統整體測試 58
結束語 60
參考文獻 61
致謝 62

前言
隨著Internet資訊科技的告訴發展,越來越多的企業已經建立或計劃建立自己的網站。從而能夠更加迅速地向客戶傳遞有關企業的新聞及相關行業中最新的.發展現狀,以便於引導客戶選擇企業的相關產品和服務,1般在商務系統的開發中,都會設定相應的新聞中心模組。該新聞中心應該能夠及時提供最新的資訊,並且應該在顯示某條新聞的同時,列出所有的相關新聞,以便於客戶在最短的時間內獲得最新最全的資訊。
本系統是基於當前流行的Struts架構開發的,Struts架構1經推出,即受到各Java 開發群體的廣泛重視,從2004年開始逐漸升溫,並日漸成為Java建立W eb應用開發的最流行的框架工具,在目前Java Web程式設計師的招聘要求中,幾乎都提出了對Struts的要求,精通Struts架構已經成為Java Web程式設計師必備的技能。