Javaweb consists of three layers: presentation layer, business layer, and persistence layer;
Jsp is the presentation layer, which collects user operation data and renders the data;
The servlet receives data, calls the service, and redirects to the service;
The service is the business layer. The data in the Receiving Performance layer is transmitted to the persistence layer, and the data in dao is called to be transmitted to the performance layer;
Dao is a persistence layer that receives data from the business layer. It adds, deletes, modifies, and queries the database and transmits the data to util;
Util is connected to the database;
TomCat is the container of jsp and servlet and is responsible for instantiating and calling jsp and servler;
Differences between jsp and servlet:
Jsp: Code does not need to be compiled, does not need to be configured, code snippets
Servlet: requires compilation, configuration, complete Class
This article is from the eSupervise blog, please be sure to keep this source http://jtmal.blog.51cto.com/7842158/1298251