The technique development history of JSP Brian Wright Michael Freedman The Java Server Pages(JSP) is a kind of according to web of the script plait distance technique, similar carries the script language of Java in the server of the Netscape company of server-side JavaScript(SSJS) and the Active Server Pages(ASP) of the Microsoft.JSP compares the SSJS and ASP to have better can expand sex, and it is no more exclusive than any factory or some one particular server of Web. Though the norm of JSP is to be draw up by the Sun company of, any factory can carry out the JSP on own system.39924
This chapter will introduce the related knowledge of JSP and Databases,and JavaBean related contents,is all certainly rougher introduction among them basic contents,say perhaps to is a Guide only,if the reader needs the more detailed information,pleasing the book of consult the homologous JSP.
A. Generalize
The JSP(Java Server Pages) is from the company of Sun Microsystems initiate, the many companies the participate to the build up the together of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function.JSP and the technique of ASP of the Microsoft is very alike.Both all provide the ability that mixes with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of HTML. Underneath we are simple of carry on the introduction to it.
JSP pages are translated into servlets. So, fundamentally, any task JSP pages can perform could also be accomplished by servlets. However, this underlying equivalence does not mean that servlets and JSP pages are equally appropriate in all scenarios. The issue is not the power of the technology, it is the convenience, productivity, and maintainability of one or the other. After all, anything you can do on a particular computer platform in the Java programming language you could also do in assembly language. But it still matters which you choose.Now, this discussion is not to say that you should stop using servlets and use only JSP instead. By no means. Almost all projects will use both. For some requests in your project, you will use servlets. For others, you will use JSP. For still others, you will combine them with the MVC architecture . You want the appropriate tool for the job, and servlets, by themselves, do not complete your toolkit.
B. Source of JSP
The technique of JSP of the company of Sun, making the page of Web develop the personnel can use the HTML perhaps marking of XML to design to turn the end page with format. Use the perhaps small script future life of marking of JSP becomes the dynamic state on the page contents.( the contents changes according to the claim of)
But the Java Servlet also is not to has no weakness, similar to traditional CGI, ISAPI, the NSAPI method, the Java Servlet is to make use of to output the HTML language sentence to carry out the dynamic state web page of, if develop the whole website with the Java Servlet, the integration process of the dynamic state part and the static state page is an evil-foreboding dream simply.For solving this kind of weakness of the Java Servlet, the SUN released the JSP.
C. JSP characteristics
Be a kind of according to text originally of,take manifestation as the central development technique,the JSP provided all advantages of the Java Servlet, and,when combine with a JavaBeans together,providing a kind of make contents and manifestation that simple way that logic separate.Separate the contents and advantage of logical manifestations is,the personnel who renews the page external appearance need not know the code of Java,and renew the JavaBeans personnel also need not be design the web page of expert in hand,can use to take the page of JavaBeans JSP to define the template of Web,to build up a from have the alike external appearance of the website that page constitute.JavaBeans completes the data to provide,having no code of Java in the template thus, this means that these templates can be written the personnel by a HTML plait to support.Certainly, can also make use of the Java Servlet to control the logic of the website,adjust through the Java Servlet to use the way of the document of JSP to separate website of logic and contents.
- 上一篇:ASP.NET Web API的介绍英文文献和中文翻译
- 下一篇:对C# 2.0和C# 3.0的新功能概述英文文献和中文翻译
-
-
-
-
-
-
-
大众媒体对公共政策制定的影响
杂拟谷盗体内共生菌沃尔...
java+mysql车辆管理系统的设计+源代码
中考体育项目与体育教学合理结合的研究
酸性水汽提装置总汽提塔设计+CAD图纸
当代大学生慈善意识研究+文献综述
乳业同业并购式全产业链...
十二层带中心支撑钢结构...
河岸冲刷和泥沙淤积的监测国内外研究现状
电站锅炉暖风器设计任务书