JSP的BBS论坛设计与实现毕业论文

本科生毕业论文(设计)

基于JSP的财大家园BBS论坛的设计

与实现

姓 名 学 号 专 业 指导教师

2011年05月20日

摘 要

随着网络应用的兴起,人们交流的方式也发生了翻天覆地的变化。网络聊天、网络视频和邮箱系统等网络应用的出现正在改变着人们彼此之间沟通、交流的方式。此外,为了满足人们在某一特定主题下的知识获取和信息发布,出现了在线网络论坛。各种各样的主题论坛几乎囊括了人们生活的每个角落。人们根据自己的专业特长和兴趣爱好在论坛上提出自己的问题,即提出主题。而后其他人根据主题内容可以发表自己的意见和看法,即回复主题。一千个人有一千个哈姆雷特,论坛集大家之所长,所感,为每一个用户提供了丰富的知识矿藏。论坛是一个让人足不出户即可了解外界世界,了解他人所想的工具。在人们生活节奏逐步加快的今天,必有其存在的现实意义。正是基于这样的认识,开发了此BBS论坛系统。除了提供基本的看帖、发帖、回帖、搜帖的功能,针对管理员用户系统还提供了用户管理和帖子管理的操作。目的是基于现实,为用户提供一个模拟的网上交流环境。方便大家的沟通交流,丰富人们的娱乐文化生活。

在论文的篇章上,本论文从系统分析、系统整体设计、数据库设计、系统详细设计与实现几个方面对系统的开发过程作了详细的介绍,旨在全面地呈现系统由最初设计到最终定型的各个阶段,便于大家对系统有一个更好的把握和认识。系统的具体实现细节则在论文的系统详细设计与实现一章给出了具体的阐述,各个功能版块的展示也包含在其中,能够直观地看到系统运行后的演示效果。其间夹杂着部分主要代码的辅助说明,便于从底层查看系统的最终实现。

关键词:JSP;网上论坛;模拟社区;在线交流

I

Abstract

With the development of the Internet,the way of people’s communication has undergoned enormous changes.Web chat,Online Video and Mailbox System are changing the way of people’s mutual communication.And to meet the request of getting the knowledge and publishing information,Internet Forum has come to appear.All kinds of topic forum almost cover every corner of perple’s lives.Based on the major,speciality or interest,people pose questions on the forum,named ‘Posting’;Then,other people can publish his or her opinion or viewpoint aimed at the topic that has been released by other people before.This process named ‘Post Followup’.For there are a thousand Hamlets in a thousand people’s eyes,the forum gathering the speciality and thoughts of people,supplying very abundant resources for us.By means of it,people who never to go out can know the outside world and other people’s thoughts.Nowadays, pace of people’s life has been speeding up gradatim,the existence of the fourm must has it’s reala signifo itself.This BBS System is developed based on the cognition.Besides the fundamental function,such as Reading post,Posting and Replying post,the BBS System also provide the function of managing post and users for adminstrat.The aim of the System is to create a virtual environment of communication online.What we want to do is to make people’s communication more convenient,to rich people’s lives with culture and entertainment.

The thesis descripts the progress of the developing of the system with four chapters.They are Analysis of system,Entire design of system,Design of Database,Detailed design and achievement of system.The aim is to entirely present every progress from initial design to finalizing the design of the system,to provide convenience for people to grasp or understand the system better.The relizing details of the system is showed at the chapter which is named Detailed design and achievement of system.The demonstration of every functional module is added to this chapter,so that we can see the running effect more directlier.Some main code is also added to make assist description.In this way,we can see the mechanism of the final realization of the system.

Key Words: JSP,Web BBS,Simulation Community,Online Communication

II

目 录

1 引 言 ........................................................... 1 2 系统分析 ......................................................... 2 2.1 需求分析 ..................................................... 2 2.1.1 功能性需求 ............................................... 2 2.1.2 非功能性需求 ............................................. 6 2.2 可行性分析 ................................................... 6 3 系统总体设计 ..................................................... 8 3.1 系统目标 ..................................................... 8 3.2 系统功能划分 ................................................. 8 3.2.1 前台功能结构 ............................................. 8 3.2.2 后台功能结构 ............................................. 9 3.3 系统开发环境 ................................................ 10 3.3.1 开发环境 ................................................ 10 3.3.2 系统平台体系结构的选择 .................................. 11 3.3.3 JAVASCRIPT语言简介及特点 ............................... 11 3.3.4 JSP概述 ................................................. 11 3.3.5 MYSQL ................................................... 12 3.3.6 JDBC技术 ................................................ 12 4 数据库设计 ...................................................... 13 4.1 数据库分析 .................................................. 13 4.2 数据库概念设计 .............................................. 13 4.3 数据库的逻辑设计 ............................................ 15 5 系统详细设计与实现 .............................................. 19 5.1 前台设计 .................................................... 19 5.1.1 前台页面设计与实现 ...................................... 19 5.1.2 用户注册/登录、管理员登录 ............................... 20 5.1.3 论坛版块的展示 .......................................... 23 5.1.4 发表新主题 .............................................. 25 5.1.5 搜索主题 ............................................... 26 5.1.6 查看及回复主题 .......................................... 27

III

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4