《JSP动态网站技术--毕业论文外文文献翻译毕业论文.doc》由会员分享,可在线阅读,更多相关《JSP动态网站技术--毕业论文外文文献翻译毕业论文.doc(10页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、 JSP dynamic web technologyJSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many companies to participate in the establishment of a dynamic web page technical standards. JSP technology somewhat similar to ASP technology, it is in the traditional HTML pages in the document paragrap
2、h inserted JAVA procedures (Scriptlet) and JSP tag (tag), thus JSP documents. Using JSP development of the Web application is cross-platform that can run on Linux, is also available for other operating systems. JSP technology to use the Java programming language prepared by the category of XML tags
3、and scriptlets, to produce dynamic pages package processing logic. Page also visit by tags and scriptlets exist in the services side of the resources of logic. JSP page logic and web page design and display separation, support reusable component-based design, Web-based application development is rap
4、id and easy. Web server in the face of visits JSP page request, the first implementation of the procedures of, and then together with the results of the implementation of JSP documents in HTML code with the return to the customer. Insert the Java programming operation of the database can be re-orien
5、ted websites, in order to achieve the establishment of dynamic pages needed to function. JSP and Java Servlet, is in the implementation of the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit. JSP 1.0 specification of the final version is la
6、unched in September 1999, December has introduced 1.1 specifications. At present relatively new is JSP1.2 norms, JSP2.0 norms of the draft has also been introduced. JSP pages from HTML code and Java code embedded in one of the components. The server was in the pages of client requests after the Java
7、 code and then will generate the HTML pages to return to the client browser. Java Servlet JSP is the technical foundation and large-scale Web application development needs of Java Servlet and JSP support to complete. JSP with the Java technology easy to use, fully object-oriented, and a platform-ind
8、ependent and secure, mainly for all the characteristics of the Internet. JSP dynamic web site development and technology. Early dynamic web site development and technology using a CGI-BIN interface. Developers to write interfaces with the relevant procedures and a separate Web-based applications, th
9、e latter through the Web server to call the former. This development technology there is a serious expansion of the problem - each new CGI procedural requirements on the server add a new process. If multiple users with access to the program, these processes will run out of the Web server all the res
10、ources available, until its collapse. In order to overcome the disadvantages of the proposed Microsoft Active Server Pages (ASP) technology, which use the plug-in and API simplifies Web application development. CGI and ASP compared to its advantages can include HTML tags, can directly access the dat
11、abase and the use of unlimited expansion of the ActiveX control, so the procedure on the preparation of a more flexible. But the technology is basically limited to Microsoft operating system platform, the main work environment is Microsofts IIS application structure, the ASP technology can not easil
12、y achieve cross-platform Web server program development. Hypertext Preprocessor (Hypertext Pre-processor), PHP dynamic web site development and technology similar to ASP, is also a kind of embedded in HTML document server-side scripting language. Most of its grammar and C, Java, Perl, and other simi
13、lar language and formed its own unique style, use of the language Web programmers can quickly develop dynamic pages. PHP in most Unix platforms, GUN / Linux and Microsoft Windows platform can run. PHPs main advantages are: ease of installation, the learning process simple database connection conveni
14、ence, compatibility strong expansion of the strong can object-oriented programming, and so on. However, PHP, there are some weaknesses, mainly PHP is an interpretation of language, not to support multi-threaded structure, the support platform and database connections are limited, especially in suppo
15、rt of the standards with regard to inherent weaknesses, for some e-commerce applications , PHP is not appropriate. There are also technologies such as Java Servlets technology, make use of the technology can be easily prepared using the Java language interactive server-side code. A Java Servlets is
16、a Java-based technology running on the server-side program (and Applet different, the latter running in the browser). Developers to write such a Java Servlets, to receive from the Web browsers HTTP request, to generate a dynamic response (may need to query the database to complete such a request), t
17、hen send HTML or XML documents response to the browser. The technology for ordinary pages designers to easily grasp it is very difficult. This approach, the entire page in the Java Servlets are to be created. If the developers or managers want to adjust Web pages that have to edit and re-build the J
18、ava Servlets. Sun Microsystems (Sun Microsystems Inc.) In Web servers, application servers, the trading system and development tools provider of broad support and cooperation, integration and balance already exists in the Java programming environment (such as Java Servlets and JavaBeans) To support
19、the technology and tools have a new, Web-based application development methods - JavaServer Pages Technology (JSP). This dynamic web site development and technology mainly have the following characteristics: To any Web or application server running on; From the application of logic and display pages
20、; To carry out the rapid development and testing; Simplifies the development of Web-based interactive applications for the process. JSP technology methods In order to facilitate the rapid and dynamic development of the site, JSP in the following areas made improvements, making it a rapid establishme
21、nt of cross-platform dynamic sites preferred option. 1. Will generate and display the contents of separation Using JSP technology, Web pages and developers can use HTML or XML logo design and formatting the final pages, and use the JSP logo or legs had generated dynamic content on the page (the cont
22、ent is based on changes in the request, for example, request account information A bottle of wine or a specific price, etc.). Content generated by the logic of the logo and packaging JavaBeans components, and tied up in the script, all of the scripts in the server-side run. As the core logic in the
23、logo and packaging was in the JavaBeans, Web page designers and management personnel, will be able to edit and use JSP pages and will not affect the content generated. In the server, JSP engine explained JSP logo and script, generated by the content of the request (for example, by visiting JavaBeans
24、 components, the use of JDBC to access the database or contain), and will result in HTML (or XML) pages in the form of sending Back to the browser. This helps to protect themselves from the code, can guarantee that any HTML-based Web browsers complete availability. 2. Reusable components The vast ma
25、jority of JSP pages rely on reusable, cross-platform components (JavaBeans or Enterprise JavaBeans components) to implement the procedures required by the application of the complexity of treatment. Developers to share and exchange the implementation of the general operation of the components, or ma
26、ke these components for more users and groups used by the customer. Component-based methods to accelerate the overall development process and enable organizations of all kinds in their existing skills and optimize the results of development efforts in the balance. 3. Use of logo Web page developers
27、are not familiar with the scripting language programmers. JSP technology package has many functions, which is in easy-to-use, XML and JSP related to the identification of dynamic content generation needs. JSP standard logo to access and examples of JavaBeans components, component attribute set or re
28、trieve, download Applet, and the implementation of other methods more difficult to coding and time-consuming function. 4. Adaptation platform Almost all platforms support Java, JSP + JavaBeans almost all platforms unimpeded access. From a port to another platform, JSP and JavaBeans do not even have
29、to recompile, because Java byte code standards and are platform-independent. 5. Database connection Java in the database linking the technology is JDBC, Java program through JDBC driver and database linked to the implementation of enquiries, such as data extraction operation. Sun has also developed
30、a JDBC-ODBC bridge, use of this technology with Java programs can access the database ODBC driver, the majority of database systems come with ODBC driver. In addition, through the development of the logo, JSP technology can be further expanded. Third-party developers and other personnel for the comm
31、on functions can create their own logo for. This makes Web page developers can use familiar tools and the same logo as the implementation of specific features of the component to their work. JSP technology easily integrated into a variety of applications in architecture, to use the existing tools an
32、d skills, and be extended to support enterprise-class distributed applications. Use of Java technology as part of the family, and the Java 2 (Enterprise Architecture) an integral part of, JSP technology can support the highly complex Web-based applications. JSP pages because of the built-in scriptin
33、g language is based on Java, and all of the JSP pages have been compiled into Java Servlets, so JSP pages with all the benefits of Java technology, including robust storage management and security. As part of the Java platform, JSP with the Java programming language, a preparation, the entire operat
34、ion characteristics. JSP application of the model. JSP pages usually been compiled into Java Servlets, this is a standard Java extension. Pages developers to visit all of the Java application environment, to take advantage of Java technology and the expansion of portability. This makes the next page
35、 of the call, the server will be very quick response (which avoids the CGI-BIN for each HTTP request to generate a new process). JSP pages can contain a variety of different applications in architecture or model, can be used by different agreements, parts and components by the format of the Commonwe
36、alth. Based on the dynamic information dissemination and JSP technology is an open, scalable create dynamic Web pages standards. Regardless of what used to create tools, developers can use JSP pages to create a portable Web applications, in different Web server applications to run on.JSP动态网站技术:JSP(J
37、avaServer Pages)是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准。JSP技术有点类似ASP技术,它是在传统的网页HTML文件中插入JAVA程序段(Scriptlet)和JSP标记(tag),从而形成JSP文件。用JSP开发的Web应用是跨平台的,即能在Linux下运行,也能在其他操作系统上运行。JSP技术使用Java编程语言编写类XML的tags和scriptlets,来封装产生动态网页的处理逻辑。网页还能通过tags和scriptlets访问存在于服务端的资源的应用逻辑。JSP将网页逻辑与网页设计和显示分离,支持可重用的基于组件的设计,
38、使基于Web的应用程序的开发变得迅速和容易。Web服务器在遇到访问JSP网页的请求时,首先执行其中的程序段,然后将执行结果连同JSP文件中的HTML代码一起返回给客户。插入的Java程序段可以操作数据库、重新定向网页等,以实现建立动态网页所需要的功能。 JSP与Java Servlet一样,是在服务器端执行的,通常返回该客户端的就是一个HTML文本,因此客户端只要有浏览器就能浏览。 JSP的1.0规范的最后版本是1999年9月推出的,12月又推出了1.1规范。目前较新的是JSP1.2规范,JSP2.0规范的征求意见稿也已出台。JSP页面由HTML代码和嵌入其中的Java代码所组成。服务器在页面
39、被客户端请求以后对这些Java代码进行处理,然后将生成的HTML页面返回给客户端的浏览器。Java Servlet 是JSP的技术基础,而且大型的Web应用程序的开发需要Java Servlet和JSP配合才能完成。JSP具备了Java技术的简单易用,完全的面向对象,具有平台无关性且安全可靠,主要面向因特网的所有特点。 JSP动态网站开发技术早期的动态网站开发技术使用的是CGIBIN接口。开发人员编写与接口相关的单独的程序和基于Web的应用程序,后者通过Web服务器来调用前者。这种开发技术存在着严重的扩展性问题每一个新的CGI程序要求在服务器上新增一个进程。如果多个用户并发地访问该程序,这些进
40、程将耗尽该Web服务器所有的可用资源,直至其崩溃。为克服这一弊端,微软公司提出了Active Server Pages(ASP)技术,该技术利用“插件”和API简化了Web应用程序的开发。ASP与CGI相比,其优点是可以包含HTML标签,可以直接存取数据库及使用无限扩充的ActiveX控件,因此在程序编制上更富有灵活性。但该技术基本上是局限于微软的操作系统平台之上,主要工作环境是微软的IIS应用程序结构,所以ASP技术不能很容易地实现跨平台的Web服务器程序开发。Hypertext Preprocessor(超文本预处理器),即PHP动态网站开发技术与ASP相似,也是一种嵌入HTML文档的服务
41、器端脚本语言。其语法大部分与C、Java、Perl等语言相似,并形成了自己的独有风格,利用该语言Web程序员可以快速地开发出动态网页。PHP在大多数Unix平台、GUN/Linux和微软Windows平台上均可以运行。PHP的优点主要有:安装方便,学习过程简单;数据库连接方便,兼容性强;扩展性强;可以进行面向对象编程等。但PHP也存在一些弱点,主要是PHP是一种解释型语言,不支持多线程结构,支持平台和连接的数据库都有限,特别是在支持的标准方面存在先天不足,对于某些电子商务应用来说,PHP是不适合的。 还有一些技术,如Java Servlets技术,利用该技术可以很容易地用Java语言编写交互式
42、的服务器端代码。一个Java Servlets就是一个基于Java技术的运行在服务器端的程序(与Applet不同,后者运行在浏览器端)。开发人员编写这样的Java Servlets,以接收来自Web浏览器的HTTP请求,动态地生成响应(可能需要查询数据库来完成这种请求),然后发送包含HTML或XML文档的响应到浏览器。这种技术对于普通的页面设计者来说要轻易地掌握是很困难的。采用这种方法,整个网页必须都在Java Servlets中制作。如果开发人员或者Web管理人员想要调整页面显示,就不得不编辑并重新编译该Java Servlets。 太阳微系统公司(Sun Microsystems Inc.
43、)在Web服务器、应用服务器、交易系统以及开发工具供应商间广泛支持与合作下,整合并平衡了已经存在的对Java编程环境(例如Java Servlets和JavaBeans)进行支持的技术和工具后产生了一种新的、开发基于Web应用程序的方法JavaServer Pages技术(JSP)。这种动态网站开发技术主要有以下一些特点:能够在任何Web或应用程序服务器上运行;分离了应用程序的逻辑和页面显示; 能够进行快速的开发和测试; 简化了开发基于Web的交互式应用程序的过程。JSP的技术方法为了快速方便地进行动态网站的开发,JSP在以下几个方面做了改进,使其成为快速建立跨平台的动态网站的首选方案。 1.
44、将内容的生成和显示进行分离 用JSP技术,Web页面开发人员可以使用HTML或者XML标识来设计和格式化最终页面,并使用JSP标识或者小脚本来生成页面上的动态内容(内容是根据请求变化的,例如请求账户信息或者特定的一瓶酒的价格等)。生成内容的逻辑被封装在标识和JavaBeans组件中,并且捆绑在脚本中,所有的脚本在服务器端运行。由于核心逻辑被封装在标识和JavaBeans中,所以Web管理人员和页面设计者,能够编辑和使用JSP页面,而不影响内容的生成。 在服务器端,JSP引擎解释JSP标识和脚本,生成所请求的内容(例如,通过访问JavaBeans组件,使用JDBC技术访问数据库或者包含文件),并
45、且将结果以HTML(或者XML)页面的形式发送回浏览器。这既有助于作者保护自己的代码,又能保证任何基于HTML的Web浏览器的完全可用性。 2.可重用组件 绝大多数JSP页面依赖于可重用的、跨平台的组件(JavaBeans或者Enterprise JavaBeans组件)来执行应用程序所要求的复杂的处理。开发人员能够共享和交换执行普通操作的组件,或者使得这些组件为更多的使用者和客户团体所使用。基于组件的方法加速了总体开发过程,并且使得各种组织在他们现有的技能和优化结果的开发努力中得到平衡。 3.采用标识 Web页面开发人员不会都是熟悉脚本语言的编程人员。JSP技术封装了许多功能,这些功能是在易
46、用的、与JSP相关的XML标识中进行动态内容生成所需要的。标准的JSP标识能够访问和实例化JavaBeans组件,设置或者检索组件属性,下载Applet,以及执行用其他方法更难于编码和耗时的功能。 4.适应平台 几乎所有平台都支持Java,JSPJavaBeans几乎可以在所有平台下通行无阻。从一个平台移植到另外一个平台,JSP和JavaBeans甚至不用重新编译,因为Java字节码都是标准的与平台无关的。 5.数据库连接 Java中连接数据库的技术是JDBC,Java程序通过JDBC驱动程序与数据库相连,执行查询、提取数据等操作。Sun公司还开发了JDBCODBC bridge,利用此技术J
47、ava程序可以访问带有ODBC驱动程序的数据库,目前大多数数据库系统都带有ODBC驱动程序,所以Java程序能访问诸如Oracle、Sybase、MS SQL Server和MS Access等数据库。 此外,通过开发标识库,JSP技术可以进一步扩展。第三方开发人员和其他人员可以为常用功能创建自己的标识库。这使得Web页面开发人员能够使用熟悉的工具和如同标识一样的执行特定功能的构件来进行工作。JSP技术很容易整合到多种应用体系结构中,以利用现存的工具和技巧,并且能扩展到支持企业级的分布式应用中。作为采用Java技术家族的一部分,以及Java 2(企业版体系结构)的一个组成部分,JSP技术能够支
48、持高度复杂的基于Web的应用。 由于JSP页面的内置脚本语言是基于Java的,而且所有的JSP页面都被编译成为Java Servlets,所以JSP页面具有Java技术的所有好处,包括健壮的存储管理和安全性。作为Java平台的一部分,JSP拥有Java编程语言“一次编写,各处运行”的特点。 JSP的应用模型。JSP页面通常被编译成为Java Servlets,这是一个标准的Java扩展。页面开发人员能够访问全部的Java应用环境,以利用Java技术的扩展性和可移植性。当JSP页面第一次被调用时,如果它还不存在,就会被编译成为一个Java Servlets类,并且存储在服务器的内存中。这就使得在
49、接下来的对该页面的调用中,服务器会有非常快的响应(这避免了CGIBIN为每个HTTP请求生成一个新的进程的问题)。JSP页面可以包含在多种不同的应用体系结构或者模型中,可以用于由不同协议、组件和格式所组成的联合体中。基于JSP的动态信息发布技术是一个开放的、可扩展的建立动态Web页面的标准。不论采用什么创建工具,开发人员都可以使用JSP页面来创建可移植的Web应用,在不同的Web应用服务器上运行。1. 基于C8051F单片机直流电动机反馈控制系统的设计与研究2. 基于单片机的嵌入式Web服务器的研究 3. MOTOROLA单片机MC68HC(8)05PV8/A内嵌EEPROM的工艺和制程方法及对良率的影响研究 4. 基于模糊控制的电阻钎焊单片机温度控制系统的研制 5. 基于MCS-51系列单片机的通用控制模块的研究 6. 基于单片机实现的供暖系统最佳启停自校正(STR)调节器7. 单片机控制的二级倒立摆系统的研究8. 基于增强型51系列单片机的TCP/I