Servlet: splice html content in Servlet
JSP: splicing java in html
JSP+JavaBean: Use javaBean to extract a large amount of code
Servlet+JSP+JavaBean: Servlet is a controller, javabean encapsulates data, and jsp displays data
The classic three-layer structure of javaweb:
dao javabean
servlet ==> service
jsp
javabean:
javabean is a java class that follows a specific writing method
1. This java class must have a constructor without parameters
2. Attributes must be privatized
3. The privatized attribute must expose the public method to other programs
The above is a detailed explanation of the JavaWeb framework MVC design ideas introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!