JSP be based on Java Development Web What are the characteristics of the application ?JSP It's based on Servlet Dynamic web development technology based on the standard , The essence is a simplified Servlet, stay JSP In file HTML Code and the Java Code exists in common , among HTML The code is used to display the static content in the web page ,Java The code is used to display the dynamic content in the web page . In order to keep up with tradition HTML Somewhat different ,JSP The extension of the file is JSP.
be based on Java Of JSP Technology Institute Development Web Applications , Its use features are as follows ：
Precompile refers to the first time a user accesses through a browser JSP When the page is , The server will respond to JSP Page code to compile , And only one compilation . The compiled code will be saved , The compiled code will be executed the next time the user visits . This not only saves the server CPU resources , It also greatly improves the access speed of the client .
2、 Business code separation
In the use of JSP technological development Web When applied , The interface development can be separated from the application development .
3、 component reuse
JSP Use JavaBean Write business components , That is to use a JavaBean Class encapsulates business processing code or uses it as a data storage model , stay JSP This can be reused on a page or even throughout a project JavaBean, meanwhile JavaBean It can also be applied to other Java In the application .
4、 Cross platform
JSP Is based on Java Language , have access to Java API, Cross platform can be applied to different systems , Such as Windows and Linux etc. .
5、JSP Operation principle
JSP Our working mode is request / Response patterns , The client sends the HTTP request ,JSP After receiving the request, the program will process it and return the result . In a JSP The first time a file is requested ,JSP engine ( Containers ) Take this JSP File conversion into a Servlet, And the engine itself is a Servlet. Zhengzhou infertility hospital http://yyk.39.net/zz3/zonghe/fc964.html