jsp and HTML are different than the difference between dynamic and static pages
One, static Web pages, generally referred to as HTML:
1, in a static Web program, the client uses a Web browser (IE, Firefox, etc.) is connected to the server through the network, using the HTTP protocol to initiate a request, tell the server which page I need now, all the requests to the Web server, then the Web server according to the needs of users, Remove the content from the file system (the disk that holds all the static pages). After the Web server is returned to the client, the client receives the content after the browser rendering parsing, to get the effect displayed.
2, in order to make the static Web page display more beautiful, using Javascript/vbscript/ajax (Ajax is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), is a web development technique that creates an interactive Web application. However, these effects are presented to the user via the browser on the client, so there is no change on the server itself.
3, static web can not connect to the database;
4, Static Web resources development technology: HTML;
5, because of the current Web page, a large number of use of JS, causing the browser to open the page, will occupy a lot of memory, the pressure on the server is reduced, but the pressure to the client.
Second, Dynamic Web pages, commonly referred to as JSP:
Dynamic Web, the program still uses the client and the server, the client still use the browser (IE, Firefox, etc.), through the network (networks) to connect to the servers, Requests are initiated using the HTTP protocol, and all current requests are processed first through a Web server.
If the client is requesting a static resource (*.htm or *.htm), the request is forwarded directly to the Web server, and then the Web server takes the content out of the file system and sends it back to the client browser for resolution execution.
If the client requests a dynamic resource (*.jsp, *.asp/*.aspx, *.php), the request is forwarded to the Web Container (Web container), the database is connected in the Web Container, After a series of operations, such as extracting data from a database, and then dynamically piecing together the contents of the page, putting together the content of the page, all the content is presented to the Web server, and then the content is sent back to the client browser through the Web server for parsing and execution.
The difference between JSP and HTML