JSP+Servlet+DAO+Javabean Pattern Notes-20171029

  1. When the doPost method of the Servlet uses request.getParameter() to receive the form data sent by the web page, the name attribute must be used instead of the id.

2. This is the simplest MVC pattern, where M (model) corresponds to javabean, V (view) corresponds to JSP, C (controll) corresponds to Javabean, DAO is the data persistence layer, the model and database connection layer, and does not belong to any MVC. One.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324470552&siteId=291194637