菜单
  

    In this section of the operating principle of simple introduction  JSP  and strengths.For the first time in a JSP documents requested by the engine, JSP Servlet is transformed into a document JSP. This engine is itself a Servlet. The operating process of the JSP shown below:69137

    (1) the JSP engine put the JSP files converting a Java source files (Servlet),  if you find the files have any grammar mistake JSP, conversion process will interrupt, and to the server and client output error messages.

    (2) if converted, with the engine JSP javac Java source file compiler into a corresponding scale-up files.

    (3) to create a the Servlet (JSP page), the transformation of the Servlet jspInit () method was executed, jspInit () method in the life cycle of Servlet executed only once.

    (4) jspService () method invocation to the client requests. For each request, JSP engine to create a new thread for processing the request. If you have multiple clients and request the JSP files, JSP engine will create multiple threads. Each client requests a thread. To execute multi-thread can greatly reduce the requirement of system resources, improving the concurrency value and response time. But also should notice the multi-thread programming, due to the limited Servlet always in response to memory, so is very fast.

    (5) if the file has been modified. The JSP, server will be set according to the document to decide whether to recompile, if need to recompile, will  replace the Servlet compile the memory and continue the process.论文网

    (6) although the JSP efficiency is high, but at first when the need to convert and compile and some slight delay. In addition, if at any time due to reasons of system

    resources, JSP engine will in some way of uncertain Servlet will remove from memory. When this happens jspDestroy () method was first call.

    (7) and then Servlet examples were marked with "add" garbage collection. But in jspInit () some initialization work, if establish connection with database, or  to establish a network connection, from a configuration file take some parameters, such as, in jspDestory () release of the corresponding resources.

    Based on a Java language has many other techniques JSP page dynamic characteristics, technical have embodied in the following aspects:

    One simplicity and effectiveness

    The JSP dynamic web pages with the compilation of the static HTML pages of writing is very similar. Just in the original HTML page add JSP tags, or some of the proprietary scripting (this is not necessary). So, a familiar with HTML page write design personnel may be easily performed JSP page development. And the developers can not only, and write script by JSP tags used exclusively others have written parts to realize dynamic pages. So, an unfamiliar with the web developers scripting language, can use the JSP make beautiful dynamic pages. And this in other dynamic web development is impossible.

    Tow the independence of the program

    The JSP are part of the family of the API Java, it has the general characteristics of the cross-platform Java program. In other words, is to have the procedure, namely the independence of the platform, 6 Write bided anywhere! .

    Three procedures compatibility

    The dynamic content can various JSP form, so it can show for all kinds of customers, namely from using HTML/DHTML browser to use various handheld wireless equipment WML (for example, mobile phones and pdas), personal digital equipment to use XML applications, all can use B2B JSP dynamic pages.

    Four program reusability

    In the JSP page can not directly, but embedded scripting dynamic interaction will be cited as a component part. So, once such a component to write, it can be repeated several procedures, the program of the reusability. Now, a lot of standard JavaBeans

  1. 上一篇:电子商务万维网的智能销售助理英文文献和中文翻译
  2. 下一篇:Java技术的Web应用设计模型英文文献和中文翻译
  1. 数控加工技术英文文献和中文翻译

  2. CAD/CAM模具技术课程教学改...

  3. JSP英文文献和中文翻译

  4. Java技术的Web应用设计模型...

  5. JSP技术概述英文文献和中文翻译

  6. Servlet和JSP技术概述英文文献和中文翻译

  7. 数控技术的发展趋势英文文献和中文翻译

  8. java+mysql车辆管理系统的设计+源代码

  9. 酸性水汽提装置总汽提塔设计+CAD图纸

  10. 十二层带中心支撑钢结构...

  11. 河岸冲刷和泥沙淤积的监测国内外研究现状

  12. 当代大学生慈善意识研究+文献综述

  13. 大众媒体对公共政策制定的影响

  14. 中考体育项目与体育教学合理结合的研究

  15. 乳业同业并购式全产业链...

  16. 杂拟谷盗体内共生菌沃尔...

  17. 电站锅炉暖风器设计任务书

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回