1、establishment of a dynamic web page technology standards. JSP technology issomewhat similar to ASP technology, It is a t raditional HTML p age file (*. htm, *. html) to insert Java program segment (Scriptlet) and JSP tag (tag), To form the JSP file( *jsp). Web development with JSP is a cross -platfo
2、rm applications that can run under Linux, but also in other operating systems. In the JSP of the many advantages, one of which is that it will be HTML encoded Web page from the business logicseparated effectively. JSP access with reusable components, such as Servlet,JavaBean and Java-based Web appli
3、cations. JSP also supports directly in the Web page embedded Java code. JSP can be used two ways to access documents: JSP documents sent by the browser request, the request sent to the Servlet. JSPtechnology uses Java programming language, XML -type tags and scriptlets, to have a package deal with t
4、he logi c of dynamic pages. Page tags and scriptlets can alsoexist in the server access to the resources of the application logic. JSP logic and We b page design and display isolated and support reusable component -based design,Web-based applications more quickly and easily developed.The Web server
5、when meets visits the JSP homepage the request, first carries out segment, will then carry out the result code to return together with JSP in the document HTML for the customer. The insertion Java segment may operate t hedatabase, again the directional homepage and so on, realizes the function which
6、 the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in the server end execution, usually returns to this client side is a HTML text, thereforeclient side, so long as has the browser to be able to glance over.The JSP page is composed of the HTML code and the inserting Jav
7、a code. The server in the page by the client side was requested that later will carry on processing to these Java code, will then produce the HTML page will return gives the client side the browser. Java Servlet is the JSP technology base, moreover the large -scale Web application procedures develop
8、ment needs Java Servlet and the JSP coordinationcan complete. JSP had the Java technology simply easy to use, completeobject-oriented, had the platform independency, and safe reliable, mainly faced Internets all characteristics.2 JSP computing techniqueTo carry on the dynamic website conveniently fa
9、st the development, JSP has made the improvement in the following several aspects, causes it to become builds the cross platform fast the dynamic website first choice plan.2.1 carries on the content production and the demonstration separatesWith the JSP technology, the Web page develop ment personne
10、l may use HTML or the XML marking design and the formatted final page, and uses the JSP marking or the tootsy produces on pages dynamic content originally. Production contentslogic is sealed in marks and in the JavaBeans module, and ties up in the script, all scripts in server end movement. Because
11、core logic is sealed in marks and inJavaBeans, therefore the Web administrative personnels and the page designer, can edit and use the JSP page, but does not affect the content the production. In theserver end, the JSP engine explained that the JSP marking and the script, produce the content which r
12、equested, and (or XML) pages form t ransmits the result by HTMLthe browser. This both are helpful in the author protects own code, and can guarantee any based on the HTML Web browsers complete usability.2.2 may entrust with heavy responsibility the moduleThe overwhelming majority JSP page relies on
13、may entrust with heavyresponsibility, the cross platform module (JavaBeans or Enterprise the JavaBea ns module) carries out complex processing which the application procedure requests.The development personnel can share and exchange the execution ordinary operation the module, or causes these module
14、s uses for more users and the customerassociation. Has accelerated the overall development process based on modulemethod, and causes each kind of organization obtains balanced in their existing skill and in the optimized result development endeavor.2.3 uses markingThe Web page development personnel
15、will not be the familiar script language programmers. The JSP technology has sealed many functions, these functions are easy to use, marking to carry on the dynamic content production with JSP in the related XML to need. The standard JSP marking can visit and t he instantiationJavaBeans module, the establishment or the retrieval module attribute, downloads Applet, as well as the execution difficulty with codes and the time -consumingfunction with other methods.2.4 adapts the platf
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1