1、大连大连交通大学信息工程学院毕业设计(论文)任务书题 目城市订餐系统服务器端实现任务及要求:1.设计(研究)内容和要求任务:1、 城市订餐系统服务器端当前技术的发展近况,完成实习报告,字数不少于3000,第三周交给指导老师。2、 结合自己实习情况安排进度,填写进度计划表,第二周完成后交给指导老师签字,并严格执行。3、 按照软件工程思想,独立完成系统的设计和程序开发,完成代码估计2000行左右。4、 用Java、jsp技术实现局域网聊天功能。5、 程序简洁,算法可行,运行情况良好。要求:1、 每周和指导老师至少见面沟通一次,回报课题进展情况,接受老师询问。2、 接到任务书后,查阅与题目及专业相关
2、的外文资料进行翻译,要求不少于10000个外文字符,译出汉字不得少于3000,于第四周交给指导老师审阅。3、 毕业设计第13周完成毕业论文的装订,并由指导老师评阅。论文要求12000字以上,包括综述、系统总体设计、系统实现、性能分析、结论等。4、 教学第13周通过中软及教研室组织进行软件验收,验收时要提供软件使用说明书。5、 于第13周提出毕业答辩申请并签字。6、 第14 周答辩,要求制作PPT2.原始依据通过大学几年的学习,已经学习了诸如软件工程、数据库原理及应用、数据结构、jsp、JAVA等多门程序设计语言和网络等基础知识和专业知识,学生有能力而且可以独立完成小中型项目的设计与开发。学校现
3、有设备和环境可以提供给学生实习和上机,而且具有专业老师可以指导学生。3.参考文献1 孙卫琴,李洪成.Tomcat 与 Java Web 开发技术详解.电子工业出版社,2003年6月:1-2052 BruceEckel.Java编程思想. 机械工业出版社,2003年10月:1-3783 FLANAGAN.Java技术手册. 中国电力出版社,2002年6月:1-4654 孙一林,彭波.Java数据库编程实例. 清华大学出版社,2002年8月:30-2105 LEE ANNE PHILLIPS.巧学活用HTML4.电子工业出版社,2004年8月:1-3196 飞思科技产品研发中心.JSP应用开发详解
4、.电子工业出版社,2003年9月:32-3007 耿祥义,张跃平.JSP实用教程. 清华大学出版社,2003年5月1日:1-3548 孙涌.现代软件工程.北京希望电子出版社,2003年8月:1-246 9 萨师煊,王珊.数据库系统概论.高等教育出版社,2002年2月:346010 Brown等.JSP编程指南(第二版). 电子工业出版社 ,2003年3月:1-268 11 清宏计算机工作室.JSP编程技巧. 机械工业出版社, 2004年5月:1-410 12 W.Richaard Ste.vens.TCP/IP详解TCP事务协议.HTTP.UNIX域协议.200013 Christian Cr
5、umlish.Lucinda Dykes.Dreamweaver MX 2004M.SYBEX.2004 指导教师签字:教研室主任签字:2011 年 3 月 26 日大连交通大学信息工程学院毕业设计(论文)进度计划与考核表学生姓名张岩专业班级软件工程08-3班指导教师王建何丹丹本课题其他人员无题目城市订餐系统服务器端实现日期计划完成内容完成情况指导老师检查签字第1周拟订毕业论文进度计划与考核表第2周完成实习或调研报告第3周提交外文文献翻译资料第4周系统概要设计阶段第5周系统详细设计阶段第6周系统编码实施、完成论文初稿第7周完成系统编码实施第8周系统编码调试、提交论文初稿第9周完成系统编码调试、
6、完善毕业论文第10周完成撰写毕业设计论文编写及代码测试第11周完成论文终稿、准备毕业论文打印、装订第12周提交毕业论文终稿及代码第13周完成毕业论文 第14周毕业论文答辩指导教师签字: 2012年 月 日大连交通大学信息工程学院毕业设计(论文)外文翻译学生姓名 张岩 专业班级 软件工程08-3班 指导教师 王建何丹丹 职 称 高工助教 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2012 年 4 月 13 日A OverviewWhen ASP was first released, Web programming was more difficult because y
7、ou needed IIS to serve your ASP pages. Later, ASP.NET 2.0 and Visual Studio 2005 made everything easier by introducing the Web site model of development. Instead of creating a new project inside Visual Studio, the Web site model lets you point to a directory and start writing pages and code. Further
8、more, you can quickly test your site with the built-in ASP.NET Development Server, which hosts ASP.NET in a local process and obviates the need to install IIS to begin developing.we will introduce 2.0 technology from different aspects.1.The .NET Framework Class LibraryASP.NET is part of Microsofts o
9、verall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need.because Visual Basic, JScript, and C+. A great deal of the functionality of these programming languages overlaps.for example, for each language, you would have to include meth
10、ods for accessing the file system, working with databases, and manipulating strings.whats more, these languages contain similar programming constructs, can represent loops and conditionals. Even though the syntax of a conditional written in Visual Basic differs from the syntax of a conditional writt
11、en in C+, the programming function is the same. Maintaining all this functionality for multiple languages requires a lot of work. Wouldnt it be easier to create all this functionality once and use it for every language?however, The .NET Framework Class Library does exactly that. It consists of a vas
12、t set of classes designed to satisfy any conceivable programming need.For instance, the .NET framework contains classes for handling database access, working with the file system, manipulating text, and generating graphics. In addition, it contains more specialized classes for performing tasks such
13、as working with regular expressions and handling network protocols. furthermore, The .NET framework contains classes that represent all the basic variable data types such as strings, integers, bytes, characters, and arrays.The .NET framework is huge. It contains thousands of classes (over 3,400). Fo
14、rtunately, the classes are not simply jumbled together. The classes of the .NET framework are organized into a hierarchy of namespaces.A namespace is a logical grouping of classes. For example, all the classes that relate to working with the file system are gathered together into the System.IO names
15、pace. The namespaces are organized into a hierarchy (a logical tree). At the root of the tree is the System namespace. This namespace contains all the classes for the base data types, such as strings and arrays. It also contains classes for working with random numbers and dates and times.You can uni
16、quely identify any class in the .NET framework by using the full namespace of the class. For example, to uniquely refer to the class that represents a file system file (the File class), you would use the following:System.IO.FileSystem.IO refers to the namespace, and File refers to the particular cla
17、ss.The classes contained in a select number of namespaces are available in your ASP.NET pages by default. (You must explicitly import other namespaces.) These default namespaces contain classes that you use most often in your ASP.NET applications: System Contains all the base data types and other us
18、eful classes such as those related to generating random numbers and working with dates and times.System.Collections Contains classes for working with standard collection types such as hash tables, and array lists.System.Collections.Specialized Contains classes that represent specialized collections
19、such as linked lists and string collections.System.Configuration Contains classes for working with configuration files (Web.config files).System.Text Contains classes for encoding, decoding, and manipulating the contents of strings.System.Text.RegularExpressions Contains classes for performing regul
20、ar expression match and replace operations.System.Web Contains the basic classes for working with the World Wide Web, including classes for representing browser requests and server responses.System.Web.Caching Contains classes used for caching the content of pages and classes for performing custom c
21、aching operations.System.Web.Security Contains classes for implementing authentication and authorization such as Forms and Passport authentication.System.Web.SessionState Contains classes for implementing session state.System.Web.UI Contains the basic classes used in building the user interface of A
22、SP.NET pages.System.Web.UI.HTMLControls Contains the classes for the HTML controls.System.Web.UI.WebControls Contains the classes for the Web controls.You can choose C# or JScript.NET or C+ or Visual Basic to program page. regardless of the language that you use to develop your ASP.NET pages, you ne
23、ed to understand that ASP.NET pages are compiled before they are executed. This means that ASP.NET pages can execute very quickly. The first time you request an ASP.NET page, the page is compiled into a .NET class, and the resulting class file is saved beneath a special directory on your server name
24、d Temporary ASP.NET Files. For each and every ASP.NET page, a corresponding class file appears in the Temporary ASP.NET Files directory. Whenever you request the same ASP.NET page in the future, the corresponding class file is executed. When an ASP.NET page is compiled, it is not compiled directly i
25、nto machine code. Instead, it is compiled into an intermediate-level language called Microsoft Intermediate Language (MSIL). All .NET-compatible languages are compiled into this intermediate language. An ASP.NET page isnt compiled into native machine code until it is actually requested by a browser.
26、 At that point, the class file contained in the Temporary ASP.NET Files directory is compiled with the .NET framework Just in Time (JIT) compiler and executed. The magical aspect of this whole process is that it happens automatically in the background. All you have to do is create a text file with t
27、he source code for your ASP.NET page.2.Building Forms with Web Server ControlsUseingseveral of the basic Web controls to represent standard HTML form elements such as radio buttons, text boxes, and list boxes. You can use these controls in your ASP.NET pages to create the user interface for your Web
28、 application.3.Performing Form Validation with Validation ControlsTraditionally, Web developers have faced a tough choice when adding form validation logic to their pages. You can add form validation routines to your server-side code, or you can add the validation routines to your client-side code.
29、The advantage of writing validation logic in client-side code is that you can provide instant feedback to your users. For example, if a user neglects to enter a value in a required form field, you can instantly display an error message without requiring a roundtrip back to the server.People really l
30、ike client-side validation. It looks great and creates a better overall user experience. The problem, however, is that it does not work with all browsers. Not all browsers support JavaScript, and different versions of browsers support different versions of JavaScript, so client-side validation is ne
31、ver guaranteed to work.For this reason, in the past, many developers decided to add all their form validation logic exclusively to server-side code. Because server-side code functions correctly with any browser, this course of action was safer. At the same time, The Validation controls automatically
32、 generate both client-side and server-side code. If a browser is capable of supporting JavaScript, client-side validation scripts are automatically sent to the browser. If a browser is incapable of supporting JavaScript, the validation routines are automatically implemented in server-side code.Requi
33、ring Fields: The RequiredFieldValidator ControlYou use RequiredFieldValidator in a Web form to check whether a control has a value. Typically, you use this control with a TextBox control. However, nothing is wrong with using RequiredFieldValidator with other input controls such as RadioButtonList. V
34、alidating Expressions: The RegularExpressionValidator ControlYou can use RegularExpressionValidator to match the value entered into a form field to a regular expression. You can use this control to check whether a user has entered, for example, a valid e-mail address, telephone number, or username o
35、r password. Samples of how to use a regular expression to perform all these validation tasks are provided in the following sections. Comparing Values: The CompareValidator ControlThe CompareValidator control performs comparisons between the data entered into a form field and another value. The other
36、 value can be a fixed value, such as a particular number, or a value entered into another control. Summarizing Errors: The ValidationSummary ControlImagine that you have a form with 50 form fields. If you use only the Validation controls discussed in the previous sections of this chapter to display
37、errors, seeing an error message on the page might be difficult. For example, you might have to scroll down to the 48th form field to find the error message.Fortunately, Microsoft includes a ValidationSummary control with the Validation controls. You can use this control to summarize all the errors a
38、t the top of a page, or wherever else you want.4.Advanced Control ProgrammingWorking with View StateBy default, almost all ASP.NET controls retain the values of their properties between form posts. For example, if you assign text to a Label control and submit the form, when the page is rendered agai
39、n, the contents of the Label control are preserved. The magic of view state is that it does not depend on any special server or browser properties. In particular, it does not depend on cookies, session variables, or application variables. View state is implemented with a hidden form field called VIE
40、WSTATE that is automatically created in every Web Forms Page. When used wisely, view state can have a dramatic and positive effect on the performance of your Web site. For example, if you display database data in a control that has view state enabled, you do not have to return to the database each t
41、ime the page is posted back to the server. You can automatically preserve the data within the pages view state between form posts.Displaying and Hiding ContentImagine that you want to break the tax form into multiple pages so that a person views only one part of the tax form at a time.you can set th
42、e Visible and Enabled properties with individual controls and groups of controls to hide and display page content. Using the Visible and Enabled PropertiesEvery control, including both HTML and Web controls, has a Visible property that determines whether the control is rendered. When a controls Visi
43、ble property has the value False, the control is not displayed on the page; the control is not processed for either pre-rendering or rendering.Web controls (but not every HTML control) have an additional property named Enabled. When Enabled has the value False and you are using Internet Explorer ver
44、sion 4.0 or higher, the control appears ghosted and no longer functions. When used with other browsers, such as Netscape Navigator, the control might not appear ghosted, but it does not function.5.Web Deployment ProjectsThe beauty of the A 2.0 is that you can develop your Web application without thi
45、nking about packaging and deployment.when need another class ,you can Add a .cs file to the App_Code directory and start writing. When want to store localizable strings in a resource file, you can add a .resx file to the App_GlobalResources directory and type in the strings. Everything just works; y
46、ou dont have to think about the compilation and deployment aspect at all. When you are ready to deploy, you have several options. The simplest choice is to copy your files to a live server and let everything be compiled on-demand (as it was in your test environment). The second option is to use the
47、aspnet_compiler.exe utility and precompile the application into a binary release, which leaves you nothing but a collection of assemblies, static content, and configuration files to push to the server. The third option is to again use aspnet_compiler.exe, but to create an updateable binary deployment where your .as*x files remain intact (and modifiable) and all of your code files are compiled into binary assemblies.6. C# LanguageIntroduction to t