1、 毕 业 设 计 说 明 书 摘摘 要 :要 :当今社会是一个信息飞速发达的社会, 人们通过互联网络可以进行信息的交流。 论坛就是一种在 Internet 网上开放的信息服务系统,通过论坛用户可以方便的实现信息 的交换和文件的共享。本文研究并实现了基于 B/S 模式的 BBS 论坛系统,该系统采用目前 流行的 JSP+JavaBean+后台数据库三层架构。 本文从 BBS 系统的开发背景、相关技术、需求分析、详细设计、系统测试与维护等方 面详细阐述了整个系统的开发过程。 关 键 词 :关 键 词 : BBS ,JSP,MYSQL,JavaBeans Abstract:Nowadays is a
2、 flourishing society that information travels fast, Through the Internet people can exchange information with each other. The forum is a service system that is open on Internet, through which, the forum customer can conveniently realizes the commutation of the information and the share of the docume
3、nts. This text research and realizes online forum system (BBS) which based on the B/S model, The system used the popular Three-tier Model (JSP+JavaBean+Database). The text detailed description of the whole system development, which described from the background of system, related technologies, deman
4、d analysis, detailed design, system testing and maintenance. Keywords: BBS,JSP,MYSQL,JavaBeans 目录 1 1 前言前言 1 1.1 1.1 选题背景和意义选题背景和意义 . 1 1.2 1.2 系统要解决的问题系统要解决的问题 . 1 2 2 相关技术及运行环境简介相关技术及运行环境简介 . 1 2.1 JSP2.1 JSP 技术简介技术简介 . 1 2.2 JAVABEAN2.2 JAVABEAN 技术简介技术简介 2 2.3 JDBC2.3 JDBC 技术简介技术简介 2 2.4 TOMCAT2.
5、4 TOMCAT 技术简介技术简介 3 2.5 2.5 运行环境运行环境 3 3 3 需求分析需求分析 3 3.1 3.1 用户功能需求用户功能需求 . 4 3.2 3.2 数据需求数据需求 5 4 4 系统整体设计系统整体设计. 5 4.1 4.1 系统模块结构设计系统模块结构设计 . 5 4.2 4.2 数据库设计数据库设计. 9 4.2.1 E4.2.1 E- -R R 图分析图分析 . 9 4.2.1.1 ER4.2.1.1 ER 模型模型 9 4.2.1.2 4.2.1.2 联系定义联系定义 12 4.2.2 4.2.2 数据表设计数据表设计 13 4.34.3 系统流程图系统流程图
6、 15 5 5 详细设计详细设计 . 16 5.1 5.1 用户登录模块用户登录模块 16 5.2 5.2 用户注册模块设计用户注册模块设计 18 5.3 5.3 帖子主题模块设计帖子主题模块设计 21 5.4 5.4 浏览帖子模块设计浏览帖子模块设计 24 5.5 5.5 发表帖子模块设计发表帖子模块设计 26 5.6 5.6 其他模块设计其他模块设计 28 5.6.15.6.1 查询用户模块查询用户模块 28 5.6.25.6.2 帖子管理模块帖子管理模块 30 6 6 系统运行和测试系统运行和测试 32 6.1 6.1 测试运行情况测试运行情况 32 6.2 6.2 程序有待改进方面程序有待改进方面 33 结论结论 . 34 参考文献参考文献 . 35 致谢致谢 . 36 1 1 1 前言前言 1 1.1 .1 选题背景选题背景和意义和意义 在二十一世纪,地球因为互联网的存在,早已变成一个村落。人们在互联网世界里尽 情的遨游,享受着 Internet 带来的无限乐趣。我们习惯了上网看新闻、去论坛看帖、网 上购物、撰写自己的网络日志等等。当然,最离不开的,还是各