1. Java Server Page (Java server-side page) JSP itself is a servlet, and must run in the web container.
Jsp operation -- "compiled into Servlet -- "compiled into .class file -- "server loaded
Jsp operation -- "compiled into Servlet -- "compiled into .class file -- "server loaded
JSP = html + css + js + Java script
2. Servlet is a server-side Java application located inside the web server. Different from the traditional Java application started from the command line, the servlet is loaded by the web server, which must contain a Java virtual machine that supports servlet.
Jsp is more focused on view, servlet is more focused on control logic
servlet has no built-in objects, jsp has built-in objects request, response, page and so on.