JSP ( Java Server Pages ) by Sun Microsystems company advocates, many companies involved with the establishment of a dynamic webpage technology standard. JSP is similar to ASP technology, it is in the traditional webpage HTML files ( *. HTM, *. HTML ) inserted in the Java program ( Scriptlet ) and JSP marker ( tag ), thereby forming a JSP file ( *. JSP ). Development of the JSP Web application is a cross platform, which can run under Linux, can also run other operating system.
A brief introduction of JSP
JSP written using the Java programming language like XML tags and scriptlets, to encapsulate the dynamic webpage processing logic. Webpage can through the tags and scriptlets access server resources exist in the application of logic. JSP webpage logic and webpage design and display of separation, support reusable component based design, which is based on Web application development more quickly and easily.
The Web server encountered in JSP webpage access request, first performed by which segments of the program, and then the results will be implemented with JSP files in the HTML code are returned to the client. Insert the Java program can operate the database, redirecting webpage, in order to achieve the establishment of dynamic webpage required function.
JSP and Java Servlet, are executed on the server, usually returns to the client is a HTML text, so as long as the client browser can browse.
The JSP 1 specification of the final version was introduced in September 1999, and launched in December 1.1 specification. The new JSP1.2 code, JSP2.0 code draft has also introduced.
The JSP page by HTML code and Java code embedded therein. Server client request to the page is the Java code for processing, and then generate the HTML page returned to the client browser. Java Servlet is JSP technology base, and large Web application development requires the Java Servlet and JSP cooperate ability to finish. JSP with Java technology is simple and easy to use, fully object-oriented, is independent of platform and is safe and reliable, mainly for all of the features of internet.
Since the JSP launched, many large companies to support JSP server, such as IBM, Oracle, Bea, JSP quickly became the commercial application of the server-side language.
JSP can be a simple equation is expressed as: HTML+Java = JSP.
JSP 2 Introduction
The new JSP specification version includes new used to lift the programmer efficiency function, basically have:
An Expression Language ( EL )
Allow developers to create Velocity - templates ( among other things ) styles. More quickly and easily create new labelling method.
Hello, $ {param.visitor } <% - same as: Hello, <% = request.getParameter (" visitor" ) % > - % >
MVC mode
In order to make the presentation layer from the request processing presentation request processing and data storage data storage separated, SUN company is recommended in the JSP file using a" Model-View-Controller" Model-view-controller mode. Standard SERVLET or separation of the JSP file is used to handle the request. When the request is processed, the control to a JSP page as create output function. There are several platforms are based on service to the network layer model - View - control model ( such as Struts and Spring framework ).
No comments:
Post a Comment