当前位置:文档之家› (论文)在线投票系统的设计与实现

(论文)在线投票系统的设计与实现

分类号学号M201075949 学校代码10487密级硕士学位论文在线投票系统的设计与实现学位申请人:王坤学科专业:软件工程指导教师:方少红副教授答辩日期:2013.1.12A Thesis Submitted in Partial Fulfillment of the Requirementsfor the Degree for the Master of EngineeringDesign and Implementation of aOnline Voting SystemCandidate : Wang KunMajor : Software EngineeringSupervisor : Assoc. Prof. Fang ShaohongHuazhong University of Science & TechnologyWuhan 430074, P.R.ChinaJanuary, 2013独创性声明本人声明所呈交的学位论文是我个人在导师指导下进行的研究工作及取得的研究成果。

尽我所知,除文中已经标明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写过的研究成果。

对本文的研究做出贡献的个人和集体,均已在文中以明确方式标明。

本人完全意识到本声明的法律结果由本人承担。

学位论文作者签名:日期:年月日学位论文版权使用授权书本学位论文作者完全了解学校有关保留、使用学位论文的规定,即:学校有权保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。

本人授权华中科技大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。

保密□,在年解密后适用本授权书。

本论文属于不保密□。

(请在以上方框内打“√”)学位论文作者签名:指导教师签名:日期:年月日日期:年月日摘要随着全球Internet的迅猛发展和计算机应用的普及,特别是近几年无线网络的广阔覆盖以及无线终端设备的爆炸式增长,使得人们能够随时随地的访问网络,以获取最新信息、参与网络活动、和他人在线互动。

为了能及时地了解民情民意,把握人们近期关注的内容,政府机构以及各大门户网站等单位会将一些热点话题以投票的形式发布到他们的网站上面,供人们在线投票。

因此,网络在线投票系统应运而生。

主要论述了一款在线投票系统的设计与实现的过程。

首先,结合实际的应用开发情况,对该系统做了详细的需求分析。

然后给出该系统的结构和各功能模块的分析,通过详细的结构和数据库表的设计,最终构建出一个基于Web的、以Struts 2框架和MySQL数据库为基础的、集成了管理员登录管理、投票话题设置管理、话题库生成管理、在线网络投票、投票结果管理等功能的在线投票系统。

在实现过程中,采用了Java开发技术中的Struts 2框架、JSP等技术,体现了MVC结构的设计思想,采用MySQL作为后台数据库并运用了数据库连接技术,采用Dreamweaver等开发工具设计页面布局,其中业务逻辑控制和拦截器的实现过程是重点。

系统地阐述了一个基于Web的在线投票系统的分析、设计和实现过程,介绍了相关的理论知识。

最后,对系统做了全面的功能测试,总结了系统的优点以及不足之处,提出了几点改进并对该应用的前景作出展望。

关键词:在线投票MVC模式Struts 2框架拦截器AbstractWith the rapid development of the global Internet and the popularity of computer applications, especially the broad coverage of the wireless network and the explosive growth of the wireless network terminal equipment in recent years, people can easily access to the network, get the latest information, participate in the network and interact with others online.In order to understand people's needs and opinions timely , to grasp the concern of the people recently, government agencies, major portals and other units will release some hot issues to their websites in the form of the topic voting for people to vote online. Therefore, the online voting system came into being.It studies the design and implementation of an online voting system. First of all, combined with the practical application and development, we make a detailed requirement analysis.Then we also give the the structure of the system and analysis of the various functional modules. Through the detailed design of the structure and the database tables, we eventually build a Web-based online voting system which based on Struts 2 framework, MySQL background database and integrated management of administrator login, the voting topic setting management, topics library generating management, online Internet voting, voting results management.In the realization process, we use the Java development technology, Struts 2 framework, JSP etc which reflect the MVC structure design ideas. We also use the database connection technology and use the MySQL as the background database. Using Dreamweaver and other development tools leads to a good page design. Particularly, the implementation process of the business logic control and interceptors is the key.It systematically expounded the requirement analysis, design and implementation process of a Web-based online voting system and introduced the relevant theoretical knowledge. Finally, we make a comprehensive functional testing for the system and summarize the advantages and inadequacies of the system, suggest a few improvements and system prospects.Key words:Online voting MVC mode Struts 2 framework Interceptor目录摘要 (I)Abstract (II)1 绪论1.1 研究背景 (1)1.2 国内外发展现状 (2)1.3 论文内容与组织 (4)2 相关理论与技术2.1 JSP技术介绍 (5)2.2 MVC设计模式 (8)2.3 Struts 2框架 (11)2.4 本章小结 (13)3 系统需求分析3.1 系统的开发背景 (14)3.2 系统总体需求 (14)3.3 系统的功能模块分析 (15)3.4 系统性能需求 (17)3.5 系统安全性分析 (18)3.6 本章小结 (20)4 系统总体设计4.1 系统的部署环境 (21)4.2 系统总体结构 (22)4.3 系统用例设计 (23)4.4 系统数据库设计 (25)4.5 本章小结 (30)5 系统具体实现5.1 系统开发环境 (31)5.2 主要页面文件 (37)5.3 各功能模块的实现 (40)5.4 系统的测试 (42)5.5 本章小结 (48)6 总结与展望6.1 全文总结 (49)6.2 进一步展望 (50)致谢 (51)参考文献 (52)1 绪论1.1 研究背景电子信息时代背景下,互联网正在进行着急剧膨胀式的发展。

而计算机和网络设备等硬件的普及,为网民的上网提供了更加便捷的条件,互联网已然成为了人们生活中不可分割的一部分,且在政治、经济、文化、科技、生活、社会等方面无时不刻地影响着整个世界。

据中国互联网络信息中心(CNNIC)的最新数据显示,目前有约69%的网民选择在家里上网,另有25%左右的网民选择在单位上网,在这两者之中使用手机无线上网的网民更是多达65%,网民的数量不可小视,网民的力量更是不可忽视[1]。

人们在互联网上获取信息的渠道不再只是通过传统的门户网站,还包括一些其他更新颖的方式。

如前些年的博客、BBS、QQ,现在的微博、人人网、facebook等社交平台都拥有大量的用户,人们通过这些平台交流沟通、参与活动、发表见解、进行娱乐互动,信息的流动量是十分巨大的。

网民已经形成为对网络虚拟环境和现实世界都具有非常大影响力的一股不容忽视的独特社会力量,而且正在对现代社会的政治、经济、科技、文化、生活等各个领域产生着极其深远的影响[2]。

相关主题