---Restore content begins---
what server
It is a combination of software and hardware that can provide services to the outside world
Common server
Tomcat
Nginx: handling static resources
Jetty
Jboss
What is a dynamic website
A website that can interact with users (not a dynamic website)
Simple understanding of C/S and B/S architecture
C/S Client Server client server mode
B/S:Browser Server browser server mode
The difference between C/S and B/S architecture
The operations are different. Compared with the B/S architecture, the C/S architecture has richer interfaces and operations.
The security is different, the security of C/S architecture is higher than that of B/S architecture.
The response speed is different. Because the C/S architecture has only one layer of interaction, the response speed is significantly higher than that of the B/S architecture.
The usage conditions are different, C/S requires program installation, and B/S only needs a web browser.
The cost structure is different. Although the cost of both is not low, C/S mainly comes from daily upgrade and maintenance, and B/S mainly comes from program design costs.
what is a URL
URL (Uniform Resource Locator) means Uniform Resource Locator, an identification method used to completely describe the addresses of web pages and other resources on the Internet.
Composition of URLs
1. Agreement
2. Server domain name or IP
3. Port number
4. Path
How to deploy a simple web application
Tomcat server acquisition and installation
Download URL (http//:tomcat.apache.org/)
Set the environment variable >>> add variable name >>> set the value to the installation directory of Tomcat
Simple understanding of JSP page composition
What is JSP
Java Server Pages Java server-side pages cannot be executed in browsers alone, because browsers only recognize html tags. He does not recognize the Page command.
static content
Static content is JSP page static text, which is basically HTML text independent of Java and JSP syntax
JSP element
Page directive
html tag
scriptlet <%%>
expression <%=%>
statement <%!%>