This artical will describe the MVC frame in the JAVA development process roughly.
The three sections of today’s are:
1.The defination and details about MVC.
2. Something about the classical MVC frame jsp+servlet+javabean.
3. Some information of VO and PO.
And today’s blog is the foundation of the one 3 days later.
Understand this one carefully or drop out 3 days later.
Section1:
MVC is a model for creating web applications using MVC (Model-View-Controller) design:
M(Model):The Model represents the core of the application .
The Model is the part of the application that handles the logic of the application data.
Usually the model object is responsible for dealing with the data in the database.
eg. The Class DatabaseConnection.java and the class which definites the data of the database.
V(View):View displays data.
The View is the part of the application that processes the display of data.
Usually views are created from Model data.
eg. Something just like the html, the css, the webXML document and so on.
C(Controller):The Controller processes the input .
The Controller is the part of the application that handles users’ interaction.
Usually the controller is responsible for reading data from the View, controlling users’ input, and sending data to the Model.
section2:
Something about the classical MVC frame jsp+servlet+javabean.
JAVABEAN:
JavaBean is a reusable component written in the Java language. To write to a JavaBean, the class must be concrete and public, and have a constructor with no parameters.
JavaBeans expose internal domain exposed member properties, Set and Get Methods by providing public methods that conform to a consistent design pattern.
As we all know, attribute names conform to this pattern, and other Java classes can discover and manipulate the properties of these JavaBeans through introspection mechanisms (reflection mechanisms).
AND。。。。Given today’s artical is too boring, so paste a picture with Chinese.
Section3:Some information of VO and PO.
VO(Value Object):
VO is generally used to store and deliver values.
PO(Persistent Object):
A persistent object that can be thought as a Java object that maps to a table in the database.
粗略地 roughly
开发过程development process
应用程序核心application core
展示、展现display ≈ represent
process(v)处理
逻辑logic
交互interaction
concrete具体的
constructor构造函数
parameter参数
自省机制introspection mechanisms
反射机制reflection mechanisms
域domain
内部域internal domain
value object 值对象