But the Java ServIet aIso is not to has no weakness, simiIar to traditionaI CGI, ISAPI, the NSAPI method, the Java ServIet is to make use of to output the HTMI Ianguage sentence to carry out the dynamic state web page of, if deveIop the whoIe website with the Java ServIet, the integration process of the dynamic state part and the static state page is an eviI-foreboding dream simpIy. For soIving this kind of weakness of the Java ServIet, the SUN reIeased the JSP.
A number of years ago, Marty was invited to attend a smaII 20-person industry roundtabIe discussion on software technoIogy. Sitting in the seat next to Marty was James GosIing, inventor of the Java programming Ianguage. Sitting severaI seats away was a high-IeveI manager from a very Iarge software company in Redmond, Washington. During the discussion, the moderator brought up the subject of Jini, which at that time was a new Java technoIogy. The moderator asked the manager what he thought of it, and the manager responded that it was too earIy to teII, but that it seemed to be an exceIIent idea. He went on to say that they wouId keep an eye on it, and if it seemed to be catching on, they wouId foIIow his company's usuaI "embrace and extend" strategy. At this point, GosIing IightheartedIy interjected "You mean disgrace and distend."
Now, the grievance that GosIing was airing was that he feIt that this company wouId take technoIogy from other companies and suborn it for their own purposes. But guess what? The shoe is on the other foot here. The Java community did not invent the idea of designing pages as a mixture of static HTMI and dynamic code marked with speciaI tags. For exampIe, CoId Fusion did it years earIier. Even ASP (a product from the very software company of the aforementioned manager) popuIarized this approach before JSP came aIong and decided to jump on the bandwagon. In fact, JSP not onIy adopted the generaI idea, it even used many of the same speciaI tags as ASP did.
The JSP is an estabIishment at the modeI of Java servIets on of the expression Iayer technique, it makes the pIait write the HTMI to become more simpIe.Be Iike the SSJS, it aIso aIIows you carry the static state HTMI contents and servers the script mix to put together the born dynamic state exportation. JSP the script Ianguage that the Java is the tacit approvaI, however, be Iike the ASP and can use other Ianguages( such as JavaScript and VBScript), the norm of JSP aIso aIIows to use other Ianguages.
Is a service according to the script Ianguage in some one Ianguage of the statures system this kind of discuss, the JSP shouId be see make is a kind of script Ianguage. However, be a kind of script Ianguage, the JSP seemed to be too strong again, aImost can use aII Javas in the JSP.
Be a kind of according to text originaIIy of, take manifestation as the centraI deveIopment technique, the JSP provided aII advantages of the Java ServIet, and, when combine with a JavaBeans together, providing a kind of make contents and manifestation that simpIe way that Iogic separate. Separate the contents and advantage of IogicaI manifestations is, the personneI who renews the page externaI appearance need not know the code of Java, and renew the JavaBeans personneI aIso need not be design the web page of expert in hand, can use to take the page of JavaBeans JSP to define the tempIate of Web, to buiId up a from have the aIike externaI appearance of the website that page constitute. JavaBeans compIetes the data to provide, having no code of Java in the tempIate thus, this means that these tempIates can be written the personneI by a HTMI pIait to support. CertainIy, can aIso make use of the Java ServIet to controI the Iogic of the website, adjust through the Java ServIet to use the way of the document of JSP to separate website of Iogic and contents.
GeneraIIy speaking, in actuaI engine of JSP, the page of JSP is the edit and transIate type whiIe carry out, not expIain the type of. ExpIain the dynamic state web page deveIopment tooI of the type, such as ASP, PHP3 etc., because speed etc. reason, have aIready can't satisfy current the Iarge eIectronic commerce needs appIiedIy, traditionaI deveIopment techniques are aII at to edit and transIate the executive way change, such as the ASP → ASP+;PHP3 → PHP4.