JSP + JavaBean and JSP + servlet + JavaBean are two modes. The former is pure JSP and the latter is simple MVC,
Sun has successively introduced two specifications for the MVC model. The first is JSP model1, and the second is JSP model2.
Model1 must beProgramMVC is implemented, that is, JSP is a combination of the control layer and the presentation layer, and bean is a pattern layer. this effect is obviously better than dividing the control layer separately. model2 separately divides the control layer (servlet) and is responsible for controlling business processes, accepting page requests, and creating the required JavaBean instance, and return the processed data to JSP. This effect is much better.
To put it simply, the coupling degree is tight!
Unless the project is very simple, it is recommended to use model2 because the control layer and the presentation layer are mixed, which is very troublesome.