Jsp + Servlet + JavaBean classic MVC pattern understanding

  The purpose of the MVC model (to achieve the division of functions of the Web system).
  
  In Java EE, Jsp + Servlet + JavaBean is a classic model, which is an essential knowledge skill for beginners.
  
  M, Model (model) to realize the business logic of the system
  
  1. Business logic to operate the database through DAO
  
  2. Other system business logic
  
  JavaBean function
  
  V, View (view) is responsible for interacting with the user, that is, displaying data objects on the interface to the user
  
  Jsp Function
  
  C, the bridge between the Controler Model and the View
  
  1. Distribute the user ’s request and select the appropriate view for display
  
  2. Interpret the user ’s input and map them to the operations that the model can perform
  
  Servlet Function
  
  Jsp + Servlet + Javabean: Suitable for team development, the speed is relatively slow, but the maintainability is high.
  
  Jsp: Convenient front-end interface development, easy UI development
  
  Servlet: java program, high security, high performance; but inconvenient display, you can also accept user request parameters like jsp
  
  JavaBean: repeatable call, need to accept the user ’s Request parameters and proceed accordingly

Guess you like

Origin www.cnblogs.com/ycyhjj2865/p/12735255.html