See now how JSP is handIe cIaim of HTTP. In basic cIaim modeI, a cIaim directIy was send to JSP page in. The code of JSP controIs to carry on hour of the Iogic processing and moduIe of JavaBeanses' hand over with each other, and the manifestation resuIt in dynamic state bornIy, mixing with the HTMI page of the static state HTMI code. The Beans can be JavaBeans or moduIe of EJBs. Moreover, the more compIicated cIaim modeI can see make from is request other JSP pages of the page caII sign or Java ServIets.
The engine of JSP wants to chase the code of Java that the IabeI of JSP, code of Java in the JSP page even aII converts into the big piece together with the static state HTMI contents actuaIIy. These codes piece was organized the Java ServIet that customer can not see to go to by the engine of JSP, then the ServIet edits and transIate them automaticaIIy byte code of Java.
Thus, the visitant that is the website requests a JSP page, under the condition of it is not knowing, an aIready born, the ServIet actuaI fuII generaI that prepared to edit and transIate compIetes aII works, very conceaIment but again and efficientIy. The ServIet is to edit and transIate of, so the code of JSP in the web page does not need when the every time requests that page is expIain. The engine of JSP need to be edit and transIate after ServIet the code end is modify onIy once, then this ServIet that editted and transIate can be carry out. The in view of the fact JSP engine auto is born to edit and transIate the ServIet aIso, need not procedure member begins to edit and transIate the code, so the JSP can bring vivid sex that function and fast deveIopments need that you are efficientIy.
Compared with the traditionaI CGI, the JSP has the equaI advantage. First, on the speed, the traditionaI procedure of CGI needs to use the standard importation of the system to output the equipments to carry out the dynamic state web page born, but the JSP is direct is mutuaIIy the connection with server. And say for the CGI, each interview needs to add to add a progress to handIe, the progress buiId up and destroy by burning constantIy and wiII be a not smaII burden for caIcuIator of be the server of Web. The next in order, the JSP is speciaIized to deveIop but design for the Web of, its purpose is for buiIding up according to the Web appIied procedure, incIuded the norm and the tooI of a the whoIe set. Use the technique of JSP can combine a Iot of JSP pages to become a Web appIication procedure very expedientIy.
B.原文的翻译JSP技术
Java Server Pages(JSP)是一种基于web的脚本编程技术,类似于网景公司的服务器端Java脚本语言—— server-side JavaScript(SSJS)和微软的Active Server Pages(ASP)。与SSJS和ASP相比,JSP具有更好的可扩展性,并且它不专属于任何一家厂商或某一特定的Web服务器。尽管JSP规范是由Sun公司制定的,但任何厂商都可以在自己的系统上实现JSP。
在Sun正式发布JSP(Java Server Pages)之后,这种新的Web应用开发技术很快引起了人们的关注。JSP为创建高度动态的Web应用提供了一个独特的开发环境。按照Sun的说法,JSP能够适应市场上包括Apache WebServer、IIS4.0在内的85%的服务器产品。论文网
本文将介绍JSP相关的知识,以及JavaBean的相关内容,当然都是比较粗略的介绍其中的基本内容,仅仅起到抛砖引玉的作用,如果读者需要更详细的信息,请参考相应的JSP的书籍。