1、JSP and WEB technologyKathy Sierra, Bert Bates1 JSP IntroductionJSP (JavaServer Pages) is a Java-based scripting technology. Is advocated by Sun Microsystems Inc., together with a number of companies involved in theestablishment of a dynamic web page technology standards. JSP technology issomewhat s
2、imilar 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 -platform applications that can run under Linux, but also in other operating systems. In the
3、 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 applications. JSP also supports directly in the Web page embedded Java code. JSP can be us
4、ed 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 the logi c of dynamic pages. Page tags and scriptlets can alsoexist in the server acce
5、ss 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 when meets visits the JSP homepage the request, first carries out segment, will then
6、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 the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in t
7、he 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 Java code. The server in the page by the client side was requested that later will carry
8、 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 development needs Java Servlet and the JSP coordinationcan complete. JSP had the Java techno
9、logy 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 fast the development, JSP has made the improvement in the following several aspects, ca
10、uses 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 personnel may use HTML or the XML marking design and the formatted final page, and uses the J
11、SP 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 core logic is sealed in marks and inJavaBeans, therefore the Web administrative perso
12、nnels 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 requested, and (or XML) pages form t ransmits the result by HTMLthe browser. This both
13、 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 may entrust with heavyresponsibility, the cross platform module (JavaBeans or Enterpr
14、ise 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 modules uses for more users and the customerassociation. Has accelerated the overall develo
15、pment process based on modulesmethod, 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 will not be the familiar script language programmers. The JSP technology has sealed
16、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