1, Static page is the designer of the page all things are set up, do die, and then put up, regardless of who at any time to see the page content is the same, immutable (unless manually modify the page content). A static HTML paging file that can be opened directly from a local browser. For example: file:///Users/Phil/Documents/DevOps/HBuilderProjects/testJSP/index.html. 2, the content of the dynamic page is generally based on the server-side program to generate, different people, different times to access the page, the content may be different. After writing the server-side page program, the Web designer does not need manual control, and the page content will change automatically according to the arrangement of the page program. 3, HTML is a Web page writing format, is a unified protocol language, static Web pages. Most of the pages we look at online are based on HTML language. JSP is a dynamic language, JSP can implement all the tasks of HTML, 4, HTML (hypertext Markup Language) Text Markup Language, it is a static page, and JavaScript-like explanatory language, why is it interpreted language? Because, as long as you have a browser then it can be displayed normally, and do not need to specify the compilation tool, just write in the TXT document HTML tags can be displayed normally. The JSP (Java Server page) is a Java service-side page, so it is dynamic, it needs to be compiled by the JDK to send the content to the client to display, we all know that the Java file compiled will produce a class file, the final execution is this class file, 5, JSP is the predecessor of SERVLET;6, HTML and JSP table header is not the same, this is the head of the JSP "<%@ page language=" java "import=" java.util.* "pageencoding=" GBK "%>" In the table header there are coded formats and poured into the package. is also very well differentiated, in the JSP with <%%> can write Java code, and HTML does not have <%%>. 7,, do not know what JSP or ASP what, but sometimes the interface needs logic control, so we use the corresponding technology to achieve, so it is more convenient. And the JSP in the background through the server resolution to the corresponding HTML, and then in the browser to identify the display. For example <%if (flag = = a) {<label>a<label>}else {<label>b<label>}%> server after reading this code, according to the corresponding business logicCompiled into the corresponding servlet, which is then output by the servlet to the page (HTML is the output).
The difference between dynamic and static Web projects