THE TECHNOLOGY OF JSP JSP CHARACTERISTICS Is a service according to the script language in some one language of the statures system this kind of discuss, the JSP should be see make is a kind of script language。 However, be a kind of script language, the JSP seemed to be too strong again, almost can use all Javas in the JSP。76219
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。
Generally speaking, in actual engine of JSP, the page of JSP is the edit and translate type while carry out, not explain the type of。 Explain the dynamic state web page development tool of the type, such as ASP, PHP3 etc。, because speed etc。 reason, have already can't satisfy current the large electronic commerce needs appliedly, traditional development techniques are all at to edit and translate the executive way change, such as the ASP → ASP+;PHP3 → PHP4。
In the JSP norm book, did not request the procedure in the JSP code part( be called the Scriptlet) and must write with the Java definitely。 Actually, have some engines of JSP are adoptive other script languages such as the EMAC- Script, etc。, but actually this a few script languages also are to set up on the Java, edit and translate for the Servlet to carry out of。 Write according to the norm of JSP, have no Scriptlet of relation with Java also is can of, however, mainly lie in the ability and JavaBeans, the Enterprise JavaBeanses because of the JSP strong function to work together, so even is the Scriptlet part not to use the Java, edit and translate of performance code also should is related with Java。论文网
JSP MECHANISM
To comprehend the JSP how unite the technical advantage that above various speak of, come to carry out various result easily, the customer must understand the differentiation of" the module develops for the web page of the center" and" the page develops for the web page of the center" first。
The SSJS and ASP are all in several year ago to release, the network of that time is still very young, no one knows to still have in addition to making all business, datas and the expression logic enter the original web page entirely heap what better solve the method。 This kind of model that take page as the center studies and gets the very fast development easily。 However, along with change of time, the people know that this kind of method is unwell in set up large, the Web that can upgrade applies the procedure。 The expression logic write in the script environment was lock in the page, only passing to shear to slice and glue to stick then can drive heavy use。 Express the logic to usually mix together with business and the data logics, when this makes be the procedure member to try to change an external appearance that applies the procedure but do not want to break with its llied business logic, apply the procedure of maintenance be like to walk the similar difficulty on the eggshell。 In fact in the business enterprise, heavy use the application of the module already through very mature, no one would like to rewrite those logics for their applied procedure。HTML and sketch the designer handed over to the implement work of their design the Web plait the one who write, make they have to double work- Usually is the handicraft plait to write, because have no fit tool and can carry the script and the HTML contents knot to the server to put together。 Chien but speech, apply the complexity of the procedure along with the Web to promote continuously, the development method that take page as the center limits sex to become to get up obviously。