Jsp development model 1
- (1) What is the jsp mode?
When SUN introduced JSP, it also provided corresponding development models. JavaWeb experienced three periods: JSP Model1 first generation, JSP Model2 second generation, and JSP Model 3. - (2) JSP Model1 The first generation of
small projects
Jsp does servlet things
, everything is together
JSP undertakes too many tasks
Jsp development model 2
(1) JSPModel2 second generation
1 "View layer: jsp display data
2" Controller layer: control layer, adjust the model layer to process business logic, and forward it to the appropriate video
3 "Model layer: JavaBean, write business logic
Business logic is written in javaBean
Jsp development model 3 ***
(1) JSPModel3 third generation
- Presentation layer: web part, jsp, Servlet
- Business logic layer: also known as the service layer, dedicated to processing business data.
- Data access layer: also known as the dao layer, which exchanges data with the database. Corresponding to a record in the database with JavaBean, there is no business logic in JavaBean at this time
Supplement: the web part of the presentation layer, including mvc