【正文】
ent of puter the rapid development of puter work, a number of workbased things grow rapidly and the pace of world39。 本文介紹了在 Struts 下應(yīng)用 MVC 分層思想:模型層、視圖層、控制層,在基于 JSP 頁(yè)面、 MySQL 數(shù)據(jù)庫(kù)及 Resin 服務(wù)器端的基礎(chǔ)上開發(fā)的 軟件學(xué)院工作室管理 系統(tǒng) 。 系統(tǒng)基于 B/S 的開發(fā)模式,前臺(tái)使用 JSP技術(shù)開發(fā)實(shí)現(xiàn),后臺(tái)使用 數(shù)據(jù)庫(kù)軟件管理,并采用 Hibernate 框架 進(jìn)行數(shù)據(jù)庫(kù)連接。 摘 要 21 世紀(jì)的發(fā)展已經(jīng)很大程度的依賴于計(jì)算機(jī)網(wǎng)絡(luò)的發(fā)展,隨著計(jì)算機(jī)網(wǎng)絡(luò)的快速發(fā)展而帶來(lái)的一系列的基于網(wǎng)絡(luò)的事物的飛速增長(zhǎng) 和 世界 信息化步伐的加快, 于是 越來(lái)越多的企事業(yè)單位 包括各類院校都需要一個(gè)自己的信息發(fā)布和資源共享的平臺(tái) 。 為了滿足這個(gè)需求,我們開發(fā)此工作室管理系統(tǒng),用于軟件學(xué)院教學(xué)和師生日常交流。系統(tǒng)主要分為 信息展示、工作室日常管理、系統(tǒng)管理、互動(dòng)交流四大 模塊。系統(tǒng)地闡述該 管理 系統(tǒng)開發(fā)的分析及設(shè)計(jì)過(guò)程,包括數(shù)據(jù)流圖,功能分析設(shè)計(jì),數(shù)據(jù)庫(kù)設(shè)計(jì)等 ;詳細(xì)描述了 本人負(fù)責(zé) 模塊 的實(shí)現(xiàn)過(guò)程, 并對(duì)本人在系統(tǒng)模塊中所使用關(guān)鍵技術(shù)的實(shí)現(xiàn)進(jìn)行了全面的介紹 。s informanization is accelerating,so there are more and more enterprise units including various institutions need its own information and resource sharing platform. To meet this demand, we have developed this system for regular conmunication between teachers and students of the college of software. The front of the system based on B/S pattern uses JSP to achieve while the background uses database software to manage, and Hibernate framework is used for database connection. The System consists four main modules of infomation publishing,regular management of the studio、 system management and conmunication between each other. This paper introduces MVC delamination thoughts under the Struts: model layer, view layer, control layer,and the Studio Management System Of College Of Software System Based On J2EE Technology using the technology of JSP ,MySQL database and Resin server,also it systematic describes the development of the Studio Management System and the process of design ,which includes the data flow diagram ,functional analysis and design ,and the database design and so detailedly describes the realization of the modules i am responsible for,and it has a prehensive introduction of the key technology used in the system. [Keywords] the studio management system, delamination thoughts, conmunication between each other 目 錄 第一章 緒論 ............................................. 1 引言 ....................................................... 1 文本的組織 ................................................. 1 本人做的主要工作 ........................................... 2 第二章 系統(tǒng)開發(fā)相關(guān)技術(shù)概述 .............................. 3 B/S 開發(fā)模式 ................................................ 3 JSP 技術(shù)概述 ................................................ 3 什么是 JSP技術(shù) ............................................... 3 JSP技術(shù)的優(yōu)點(diǎn) ............................................... 4 struts 技術(shù) ................................................. 4 struts與 MVC ................................................. 4 struts的工作原理 ............................................ 5 數(shù)據(jù)庫(kù)連接池技 術(shù) ........................................... 6 MySQL 簡(jiǎn)介 .................................................. 7 Hibernate 簡(jiǎn)介 .............................................. 7 Lucene 簡(jiǎn)介 ................................................. 8 自定義標(biāo)簽 簡(jiǎn)介 ............................................. 9 自定義標(biāo)簽的基本概念 ......................................... 9 自定義標(biāo)簽的格式 ............................................ 10 第三章 系統(tǒng)的分析與設(shè)計(jì) ................................. 11 系統(tǒng)的實(shí)現(xiàn)目標(biāo) ............................................ 11 系統(tǒng)分析 .................................................. 11 系統(tǒng)功能分析 ................................................ 11 系統(tǒng)流程分析 ................................................ 13 系統(tǒng)數(shù)據(jù)流分析 .............................................. 14 系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì) ............................................ 14 系統(tǒng) ER圖 .................................................. 14 數(shù)據(jù)庫(kù)表設(shè)計(jì) ................................................ 15 第四章 模塊的實(shí)現(xiàn) ....................................... 27 MVC 分層結(jié)構(gòu) ............................................... 27 信息展示模塊 .............................................. 30 日常管理模塊 .............................................. 34 系統(tǒng)管理模塊 .............................................. 40 互動(dòng)交流模塊 .............................................. 43 系統(tǒng)模塊中關(guān)鍵技術(shù)的實(shí)現(xiàn) .................................. 44 Struts框架的使用 (多模塊、多配置文件 ) ........................ 44 Hibernate的使用 ............................................ 45 Struts[Tiles]模板 ........................................... 46 Struts[Validator]驗(yàn)證 ....................................... 47 Tags 自定義標(biāo)簽 ............................................. 48 DisplayTag 標(biāo)簽庫(kù) ........................................... 50 JSTL標(biāo)簽庫(kù) ................................................. 51 AJAX異步獲取數(shù)據(jù) ........................................... 52 FreeMarker 模板 ............................................. 53 Lucene全文索引 ............................................ 54 庖丁解牛中文分詞包 ......................................... 54 數(shù)據(jù)緩存技術(shù) ............................................... 55 Proxool數(shù)據(jù)庫(kù)連接池技術(shù) ................................... 55 分頁(yè)技術(shù) ................................................... 56 網(wǎng)址重寫技術(shù)( Apache Mod Rewrite) ......................... 57 特殊 Filter 的使用 .......................................... 58 關(guān)于系統(tǒng)安全的技術(shù) ......................................... 58 第五章 總結(jié) ............................................ 60 系統(tǒng)總結(jié) .................................................. 60 個(gè)人總結(jié) .................................................. 60 下一步工作 ................................................ 61 參考文獻(xiàn) ............................................... 62 致謝 ................................................... 63 第一章 緒論 引言 軟件學(xué)院工作室管理中心是以方便同學(xué)及導(dǎo)師為宗旨設(shè)計(jì)的,讓管理員、導(dǎo)師通過(guò)網(wǎng)絡(luò),方便的了解工作室同學(xué)的狀況。對(duì)于 已經(jīng)在工作室學(xué)習(xí)的同學(xué),導(dǎo)師可以通過(guò)本簽到系統(tǒng),方便的了解同學(xué)的出勤狀況,歷史缺到次數(shù)。通過(guò)站內(nèi)短信,同工作室,不同工作室之間都可以進(jìn)行短信交流,也可以進(jìn)行短信群發(fā)。個(gè)人日志功能免除了同學(xué)手寫日志的苦惱,日志直接提交至導(dǎo)師,導(dǎo)師也可以及時(shí)了解同學(xué)當(dāng)天的學(xué)習(xí)進(jìn)展。 在實(shí)際使用中,本系統(tǒng)可以 發(fā)揮 互聯(lián)網(wǎng)的優(yōu)勢(shì)、在網(wǎng)絡(luò)上建立一個(gè)工作室管理中心,使得工作室管理更合理。工作室選向更人性化,讓學(xué)院更好、更早的進(jìn)行安排。 第一章簡(jiǎn)述了系統(tǒng)的開發(fā)背景、特點(diǎn)以及本人的主要工作。 第三章闡述了系統(tǒng)開發(fā)的分析和設(shè)計(jì)過(guò)程,包括系統(tǒng)的數(shù)據(jù)流分析、數(shù)據(jù)庫(kù)設(shè)計(jì)等。 本人做的主要工作 在 軟件學(xué)院工作室管理 系統(tǒng)的開發(fā)過(guò)程中,我參與并完成了從需求分析、概要設(shè)計(jì)、數(shù)據(jù)庫(kù)設(shè)計(jì)到系統(tǒng)功能劃分、最終實(shí)現(xiàn)的一系列工作。 第二章 系統(tǒng)開發(fā)相關(guān)技術(shù)概述 B/S開發(fā)模式 目前較流行的網(wǎng)絡(luò)開發(fā)模式分別是