Java EE Development mode 1. What is a pattern
Model in the development process summed up the "routines", summed up a set of conventional design patterns
2. Patterns experienced by Java EE
Model1 mode:
Technical composition: Jsp+javabean
Disadvantages of Model1: JSP pages are confusing as business complexity results
Model2 mode
Technical composition: Jsp+servlet+javabean
Advantages of Model2: the use of various technologies to excel in development
Servlet: Good at handling Java business code
JSP: Good at the reality of the page
MVC:----Design patterns for web development
M:model---Model JavaBean: encapsulating data
V:view-----View JSP: Simply display the page
C:controller----Controller Servelt: Get data--encapsulate data--pass data--Assign the displayed JSP page
3. Java EE three-tier architecture
Server development is divided into three tiers
Web tier: Interacting with clients
Service layer: Complex business processing
DAO Layer: Interacting with a database
The three-tier architecture is embodied through the package structure in the development practice
What does MVC have to do with the three-tier architecture?
Think about the three-tier architecture diagram
Summarize:
El expression
Remove data from the domain ${the name of the data stored in the field
${pagecontext.request.contextpath}
JSTL tags (core library)
<%@ taglib uri= "" prefix= "C"%>
<c:if test= "" >
<c:foreach items= "Array or collection" var= "array or every element in the collection" >
Java EE three layer architecture +MVC
Web layer: Collect page data, encapsulate data, pass data, specify response JSP page
Service layer: Writing of logical business code
DAO Layer: Writing access code for a database
Java EE development Model (brief)