1、 大连交通大学信息工程学院 毕业设计(论文)任务书 题 目 腾讯新闻分类管理系统 任务及要求: 1.设计(研究)内容和要求 任务: 1、 调查新闻发布技术发展近况,完成实习报告,字数不少于3000,第三周交给指导老师。 2、 结合自己实习情况安排进度,填写进度计划表,第二周完成后交给指导老师签字,并严格执行。 3、 按照软件工程思想,独立完成系统的设计和程序开发,完成代码估计2000行左右。 4、 用Jsp技术实现腾讯新闻分类的管理。 5、 程序简洁,算法可行,运行情况良好。 要求
2、 1、 每周和指导老师至少见面沟通一次,回报课题进展情况,接受老师询问。 2、 接到任务书后,查阅与题目及专业相关的外文资料进行翻译,要求不少于10000个外文字符,译出汉字不得少于3000,于第四周交给指导老师审阅。 3、 毕业设计第13周完成毕业论文的装订,并由指导老师评阅。论文要求12000字以上,包括综述、系统总体设计、系统实现、性能分析、结论等。 4、 教学第13周通过中软及教研室组织进行软件验收,验收时要提供软件使用说明书。 5、 于第13周提出毕业答辩申请并签字。 6、 第14 周答辩,要求制作PPT 2.原始依据 通过大学几年的学习,已经学习了诸如软件工程
3、数据库原理及应用、数据结构、C++、Visual Basic、JAVA等多门程序设计语言和网络等基础知识和专业知识,学生有能力而且可以独立完成小中型项目的设计与开发。学校现有设备和环境可以提供给学生实习和上机,而且具有专业老师可以指导学生。 3.参考文献 [1] 王诚梅.JSP案例开发集锦[M].电子工业出版社.2005 [2] 陈威、白伟明.JSP工程应用与项目实践[M].机械工业出版社.2005 [3] 李调阳.Microsoft SQL Server 2000中文版标准教程.海洋出版社.2005 [4] 孙晓龙.JSP动态网站设计入门与
4、提高[M].人民邮电出版社.2001 [5] 池雅庆.Struts项目开发实践[M].中国铁道出版社.2006 [6] 黄明.JSP信息系统设计与开发实例[M].机械工业出版社.2004 [7] 刘晓华.Struts应用开发详解[M].电子工业出版社.2007 [8] 何玉洁编著.数据库原理与应用教程[M].北京:机械工业出版社.2003 [9] John Bell.Java Servlets 2.3编程指南[M].北京:电子工业出版社.2002 [10] Campbell R.Mconnell Stanley L.Brue.Micro-Economics[J].set in ce
5、ntury oldstyle by York Graphic Services.2000 指导教师签字: 教研室主任签字: 2012年3月26日 大连交通大学信息工程学院 毕业设计(论文)进度计划与考核表 学生姓名 王姗姗 专业班级 软件工程 08-2班 指导教师 王 鑫 李孝贵 本课题其他人员 无 题 目 腾讯新闻分类管理系统 日 期 计划完成内容 完成情况 指导老师检查签字 第1周 完成任务书、提交进度表 第2周 完
6、成调研报告、完成英文翻译 第3周 进行市场调查研究,需求分析 第4周 初步对系统进行分析设计 第5周 系统详细设计,进行编码 第6周 系统编码实施、完成论文初稿 第7周 完成系统编码,进行调试 第8周 系调试统编码、提交论文初稿 第9周 完成系统编码调试、完善毕业论文 第10周 完成撰写毕业设计论文编写及代码测试 第11周 完成论文终稿、准备毕业论文打印、装订 第12周 提交毕业论文终稿及代码 第13周 提交毕业论文成果资料 第14周 毕业论文答辩
7、 指导教师签字: 年 月 日 注:“计划完成内容”由学生本人认真填写,其它由指导教师考核时填写。 大连交通大学信息工程学院 毕业设计(论文)调研报告 学生姓名 王姗姗 专业班级 软件工程08-2班 指导教师 王鑫 李孝贵 职 称 高工 助教 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2
8、012 年 4 月 6 日 实习报告 1 课题来源及意义 Internet的蓬勃发展,使新闻的传播方式发生了巨大的变化,传统的信息传播媒体电视、广播、报纸已经不再是人们茶余饭后的主要精神甜点,人们更多的开始关注网络新闻。由于互联网所容纳的信息量大、内容丰富、信息及时、准确,更有相关信息的全面的介绍与比较,大大地方便了人们的阅读,因此在短短几年的时间里,互联网便济身于众多媒体之间,并具有相当一部分媒体人群。借此东风,新闻网也迅速发展起来,它内容丰富,涉及到商业、工业、农业、银行、财政、教育、娱乐、信息等各个产业,信息量大,不仅有实事新闻,还有相关的行业信息,同时新闻网具有互联网所具备的
9、一切特性。在全球网络化、信息化的今天,新闻网迅速发展,大大地丰富了人们的生活,不知不觉中,它已经成为人们生活中不可或缺的重要组成部分。 最近,为了满足人们各自兴趣如阅读新闻抑或对时事新闻的评论,社会上有不少的知名的与不知名的各类新闻网站等为人们提供获取新闻及新闻评论的平台,所以我就有了学习建设腾讯新闻分类系统用于实现人们获取新闻信息的愿望。这对我自己对于喜欢新闻的朋友也有很大的好处。建设这个个人的网站既满足了自己的爱好,又可以学到自己需要的知识。 腾讯新闻分类系统是一个新闻单位不可缺少的部分,它的内容对于新闻的决策者和管理者来说都至关重要,所以腾讯新闻分类系统应该能够为用户提供充足的信息和
10、快捷的查询手段。但一直以来人们使用传统人工的方式管理文件档案,这种管理方式存在着许多缺点,如:效率低、保密性差,另外时间一长,将产生大量的文件和数据,这对于查找、更新和维护都带来了不少的困难。 随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们深刻认识,它已进入人类社会的各个领域并发挥着越来越重要的作用。 作为计算机应用的一部分,使用计算机对网上新闻发布进行管理,具有着手于管理所无法比拟的优点。例如:检索迅速、查找方便、可靠性高、存储量大、保密性好、寿命长、成本低等。这些优点能够极大地提高网上新闻发布的效率,也是企业的科学化、正规化管理,与世界接轨的重要条件。 因此,开发这
11、样一套腾讯新闻分类管理软件成为很有必要的事情。 2 国内外的现状 在Internet飞速发展的今天,互联网成为人们快速获取、发布和传递信息的重要渠道,它在人们政治、经济、生活等各个方面发挥着重要的作用。因此网站建设Internet应用上的地位显而易见,它已成为政府、企事业单位信息化建设中的重要组成部分,从而倍受人们的重视。现今的社会,人们已经离不开网络,网络已经成为人与人之间交流的一种形式,它能够把复杂的事情简单化。腾讯新闻分类系统的出现使电视不再是唯一的新闻媒体,网络也充当了一个重要的新闻媒介的功能。简单地说,腾讯新闻分类系统就是一个网络新闻媒介,实现了对新闻的分类、上传、审核、发布,模
12、拟了一般新闻媒介的新闻发布的过程,通过不同权限的用户名和密码分别实现以上所说功能,当然这些功能也可以是某一个用户全部具有的。 随着互联网的进一步发展,网络媒体在人们心中的地位进一步提高,腾讯新闻分类系统做为网络媒体的核心系统,其重要性是越来越明显:一方面,它提供一个新闻管理和发布的功能;另一方面,现在的新闻分类要求实现与普通用户之间的交互,用户可以很方便地参加一些调查和相关新闻的评论,这一点也是其他一些媒体现在无法做到的(电视、电台等),同时,Internet发展到当今,可以说,只要你上Internet,你就会接触到腾讯新闻分类系统,腾讯新闻分类系统的用户是相当惊人的,其重要性是不容置疑的,
13、当然这也对腾讯新闻分类系统的开发提出了更高的要求。 腾讯新闻分类系统,是将网站上需要经常变动的信息,社会的动态等更新信息集中管理,并通过信息的某些共性进行分类,最后系统化、标准化发布到网站上的一种网站应用程序。传统的网站新闻管理方式有两种,一是静态HTML页面,更新信息时需要重新制作页面然后上传页面并修改相应链接,这种方式因为效率太低已不多用。二是基于JSP或者其他语言和脚本语言,将动态网页和数据库结合,通过应用程序来处理新闻,这是目前较为流行的做法。人们对最新信息的需求和发布迫切的需要及时性,而动态交互式网页刚好提供了这些功能,本系统就是一个能够在网上实现新闻发布,多栏目管理,实时的进行行
14、为统计和记录的网上交互系统。 3 本课题的研究目标 随着Internet的普及,越来越多的企业建立了自己的WWW网站,企业通过网站可以展示产品,发布最新动态,与用户进行交流和沟通,与合作伙伴建立联系,以及开展电子商务等。其中腾讯新闻分类管理系统是构成企业网站的一个重要组成部分,它担负着双层作用,一方面可以用来动态发布有关新产品或新开发项目,另一方面又可以及时向顾客公告企业经营业绩、技术与研发进展、特别推荐或优惠的工程项目、产品和服务,从而吸引顾客,扩大顾客群。 随着信息时代的高速发展,传统的报纸杂志已经远远满足不了人们的需求,人们更加希望于能够在网上了解更多的新闻和信息,于是我们就很有必
15、要在网上创建一个新闻分类管理系统了。大部分网站都是采用静态的方式来发布和管理信息的,可是网站需要更新的信息量也越来越大,所以这很不利于网站管理人员的工作。为了更加方便的管理网站,于是我们就很迫切的需要利用动态技术创建一个腾讯新闻分类管理系统了。本作者长期从事管理工作,对管理工作中的主要工作深有感触,既费时又费力,增加或修改一个新闻常常需要几个小时的时间,而且把本身一项智力劳动都体现在了体力劳动中,因此,结合我工作中的实际经验,设计本系统的主要功能有新闻查询、新闻管理等等功能。 信息技术的发展使得整个世界越来越小,这也意味着企业的竞争环境由区域化向全球化发展,尤其是随着中国加入WTO的日期日益
16、临近,经济全球化是大趋势,企业所处的宏观环境实际上已经不仅仅是通过信息技术员连接起来狭义的网络,而应该将技术环境与经济环境结合在一起考虑,形成一种大网络的概念。企业对信息的掌握程度、信息获取是否及时、信息能否得到充分利用、对信息的反应是否敏感准确,已越来越成为衡量一个企业市场竞争能力的重要因素。所以建立动态的腾讯新闻分类管理系统适应企业发展的要求,其意义是具大的。新闻系统是一个比较典型的文档系统,掌握了新闻系统的开发,对于开发其它的文档系统都有很大的帮助。 4 研究内容 本次课题研究对象是腾讯新闻分类管理系统。主要是针对新闻信息进行增加,删除,修改,浏览等操作,同时系统实现了对新闻人物投票
17、友情链接等功能。系统采用目前在网站开发中使用广泛的Struts技术,基于Windows XP Professional操作系统开发,并采用了SQL Server2000数据库。在安全性方面,利用了加密技术,使系统更安全可靠。而本次论文就是针对腾讯新闻分类管理系统实现的功能进行具体说明。文章首先介绍了目前新闻系统的研究现状以及课题的研究意义,紧接着对腾讯新闻分类管理系统的需求分析、系统设计与开发实现进行详细的阐述,最后对腾讯新闻分类管理系统进行系统测试以及对全文的总结。 5 可行性分析 5.1 系统功能设计可行性 本系统对新闻系统作了详细的分类,前台以分类形式显示新闻的详细信息,满足了人
18、们浏览新闻网时分类查看新闻信息的要求,同时提供新闻信息查询功能,方便浏览者查找相关的新闻信息。增加了最受关注的新闻人物统计,友情链接等功能。新闻网后台则通过对总管理员设置和管理员添加等模块对网站管理员进行管理,保证了网站的安全性。 5.2 技术及开发方法可行性 本系统采用的是Struts1.0技术所以系统能够跨平台使用,可运行于Linux/Unix和Windows系列等操作系统平台。 5.3 管理可行性 结构化的设计方法,有助于系统开发过程的管理,因为科学合理的将整个程序划分多个功能模块,各模块单独设计,用助于降低整个程序的设计难度及减少错误程序的影响范围,各模块易于实现,又使整个程序
19、易于衔接和修改。 5.4 经济可行性 经过详细周密的调研,采用功能强大的软件,借鉴成功的实例,及科学的开发方法,可以降低开发成本,达到经济高效的目的。 6 研究方法与系统采用技术 为了保证系统运行的效率和可靠性,系统的运行应具有一定的软硬件配置,其具体运行要求如下: 软件环境 操作系统:Windows2000/XP/2003/Window7 网络协议:TCP/IP 浏览器:Internet Explorer 6.0 数据库:SQLSERVER2000 WEB服务器:Tomcat5.5 硬件环境 处理器:Inter CR300或更高 内存:128M(建议198MB)
20、 硬盘空间:1GB 7 进度安排 第1周 完成任务书、提交进度表 第2周 完成调研报告、完成英文翻译 第3周 进行市场调查研究,需求分析 第4周 初步对系统进行分析设计 第5周 系统详细设计,进行编码 第6周 系统编码实施、完成论文初稿 第7周 完成系统编码,进行调试 第8周 系调试统编码、提交论文初稿 第9周 完成系统编码调试、完善毕业论文 第10周 完成撰写毕业设计论文编写及代码测试 第11周 完成论文终稿、准备毕业论文打印、装订 第12周 提交毕业论文终稿及代码 第13周 提交毕业论文成果资料 第14周 毕业论文答辩 8 参考文
21、献 [1] 王诚梅.JSP案例开发集锦[M].电子工业出版社.2005 [2] 陈威、白伟明.JSP工程应用与项目实践[M].机械工业出版社.2005 [3] 李调阳.Microsoft SQL Server 2000中文版标准教程.海洋出版社.2005 [4] 孙晓龙.JSP动态网站设计入门与提高[M].人民邮电出版社.2001 [5] 池雅庆.Struts项目开发实践[M].中国铁道出版社.2006 [6] 黄明.JSP信息系统设计与开发实例[M].机械工业出版社.2004 [7] 刘晓华.Struts应用开发详解[M].电子工业出版社.2007 [8] 何玉洁编著.数据库
22、原理与应用教程[M].北京:机械工业出版社.2003 [9] John Bell.Java Servlets 2.3编程指南[M].北京:电子工业出版社.2002 [10] Campbell R.Mconnell Stanley L.Brue.Micro-Economics[J].set in century oldstyle by York Graphic Services.2000 大连交通大学信息工程学院 毕业设计(论文)外文翻译 学生姓名 王姗姗 专业班级 软件工程08-2班 指导教师 王鑫 李孝贵 职 称 高工
23、 助教 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2012 年 4 月 13 日 Struts——an open-source MVC implementation This article introduces Struts, a Model-View-Controller implementation that uses servlets and JavaServer Pages (JSP) technology.
24、 Struts can help you control change in your Web project and promote specialization. Even if you never implement a system with Struts, you may get some ideas for your future servlets and JSP page implementation. Introduction Kids in grade school put HTML pages on the Internet. However, there is a m
25、onumental difference between a grade school page and a professionally developed Web site. The page designer (or HTML developer) must understand colors, the customer, product flow, page layout, browser compatibility, image creation, JavaScript, and more. Putting a great looking site together takes a
26、lot of work, and most Java developers are more interested in creating a great looking object interface than a user interface. JavaServer Pages (JSP) technology provides the glue between the page designer and the Java developer. If you have worked on a large-scale Web application, you understand th
27、e term change. Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. Struts is an MVC implementation that uses Servlets 2.2 and JSP 1.1 tags, from the J2EE specifications, as part of the implementation. You may neve
28、r implement a system with Struts, but looking at Struts may give you some ideas on your future Servlets and JSP implementations. Model-View-Controller (MVC) JSP tags solved only part of our problem. We still have issues with validation, flow control, and updating the state of the application. This
29、 is where MVC comes to the rescue. MVC helps resolve some of the issues with the single module approach by dividing the problem into three categories: · Model The model contains the core of the application's functionality. The model encapsulates the state of the application. Sometimes the only f
30、unctionality it contains is state. It knows nothing about the view or controller. · View The view provides the presentation of the model. It is the look of the application. The view can access the model getters, but it has no knowledge of the setters. In addition, it knows nothing about the contr
31、oller. The view should be notified when changes to the model occur. · Controller The controller reacts to the user input. It creates and sets the model. MVC Model 2 The Web brought some unique challenges to software developers, most notably the stateless connection between the client and the
32、server. This stateless behavior made it difficult for the model to notify the view of changes. On the Web, the browser has to re-query the server to discover modification to the state of the application. Another noticeable change is that the view uses different technology for implementation than th
33、e model or controller. Of course, we could use Java (or PERL, C/C++ or what ever) code to generate HTML. There are several disadvantages to that approach: · Java programmers should develop services, not HTML. · Changes to layout would require changes to code. · Customers of the service should
34、be able to create pages to meet their specific needs. · The page designer isn't able to have direct involvement in page development. · HTML embedded into code is ugly. For the Web, the classical form of MVC needed to change. Figure 4 displays the Web adaptation of MVC, also commonly known as M
35、VC Model 2 or MVC 2. Struts details Displayed in Figure 6 is a stripped-down UML diagram of the org.apache.struts.action package. Figure 6 shows the minimal relationships among ActionServlet (Controller), ActionForm (Form State), and Action (Model Wrapper). Figure 6. UML diagram of the relati
36、onship of the Command (ActionServlet) to the Model (Action & ActionForm) The ActionServlet class Do you remember the days of function mappings? You would map some input event to a pointer to a function. If you where slick, you would place the configuration information into a file and load the
37、 file at run time. Function pointer arrays were the good old days of structured programming in C. Life is better now that we have Java technology, XML, J2EE, and all that. The Struts Controller is a servlet that maps events (an event generally being an HTTP post) to classes. And guess what -- the
38、Controller uses a configuration file so you don_t have to hard-code the values. Life changes, but stays the same. ActionServlet is the Command part of the MVC implementation and is the core of the Framework. ActionServlet (Command) creates and uses Action, an ActionForm, and ActionForward. As ment
39、ioned earlier, the struts-config.xml file configures the Command. During the creation of the Web project, Action and ActionForm are extended to solve the specific problem space. The file struts-config.xml instructs ActionServlet on how to use the extended classes. There are several advantages to thi
40、s approach: · The entire logical flow of the application is in a hierarchical text file. This makes it easier to view and understand, especially with large applications. · The page designer does not have to wade through Java code to understand the flow of the application. · The Java developer
41、does not need to recompile code when making flow changes. Command functionality can be added by extending ActionServlet. The ActionForm class ActionForm maintains the session state for the Web application. ActionForm is an abstract class that is sub-classed for each input form model. When I say
42、 input form model, I am saying ActionForm represents a general concept of data that is set or updated by a HTML form. For instance, you may have a UserActionForm that is set by an HTML Form. The Struts framework will: · Check to see if a UserActionForm exists; if not, it will create an instance of
43、 the class. · Struts will set the state of the UserActionForm using corresponding fields from the HttpServletRequest. No more dreadful request.getParameter() calls. For instance, the Struts framework will take fname from request stream and call UserActionForm.setFname(). · The Struts framework u
44、pdates the state of the UserActionForm before passing it to the business wrapper UserAction. · Before passing it to the Action class, Struts will also conduct form state validation by calling the validation() method on UserActionForm. Note: This is not always wise to do. There might be ways of usi
45、ng UserActionForm in other pages or business objects, where the validation might be different. Validation of the state might be better in the UserAction class. · The UserActionForm can be maintained at a session level. Notes: · The struts-config.xml file controls which HTML form request maps t
46、o which ActionForm. · Multiple requests can be mapped UserActionForm. · UserActionForm can be mapped over multiple pages for things such as wizards. The Action class The Action class is a wrapper around the business logic. The purpose of Action class is to translate the HttpServletRequest to
47、 the business logic. To use Action, subclass and overwrite the process() method. The ActionServlet (Command) passes the parameterized classes to ActionForm using the perform() method. Again, no more dreadful request.getParameter() calls. By the time the event gets here, the input form data (or HTML
48、 form data) has already been translated out of the request stream and into an ActionForm class. Figure 4. MVC Model 2 Struts, an MVC 2 implementation Struts is a set of cooperating classes, servlets, and JSP tags that make up a reusable MVC 2 design. This definition implies that Struts is a fr
49、amework, rather than a library, but Struts also contains an extensive tag library and utility classes that work independently of the framework. Figure 5 displays an overview of Struts. Figure 5. Struts overview Struts overview · Client browser An HTTP request from the client browser cre
50、ates an event. The Web container will respond with an HTTP response. · Controller The Controller receives the request from the browser, and makes the decision where to send the request. With Struts, the Controller is a command design pattern implemented as a servlet. The struts-config.xml fi
©2010-2025 宁波自信网络信息技术有限公司 版权所有
客服电话:4009-655-100 投诉/维权电话:18658249818