Professional Documents
Culture Documents
MVC Pattern and Frameworks
MVC Pattern and Frameworks
(MVC Framework)
1
Agenda
Model 1
Model 2
Application frameworks
Introduction to
MVC Pattern
3
MVC Pattern
Web Applications
Evolution of Web
Application Design
Architecture
9
Struts
10
No MVC
Model 1 architecture
11
Model 1
(Page-Centric
Architecture)
12
BROWSER
JSP
pages
Response
Java
Bean
Servlet
Container
Enterprise
Information
Systems (EIS)
13
Page-centric Architecture
Page-centric Architecture
memu.jsp
catalog.jsp
checkout.jsp
dataBase
pagecentric catalog application
15
Page-centric Scenario
View
search.html
Request 1
Client
response
list.jsp
Model
response
forward
JavaBeans
Request 2
Request 3
Controller
find.jsp
redirect
delete.jsp
16
Model 2
(Servlet-Centric
Architecture)
17
ta
Redirect
s
In
BROWSER
(Controller)
Servlet
nt
te
ia
5
Response
(View)
JSP
(Model)
Java Bean
Servlet Container
(EIS)
18
Solution
19
Servlet-centric Architecture
Servlet-centric Scenario
View
search.html
Request 1
Client
response
list.jsp
Model
response
forward
JavaBeans
Request 2
Request 3
Controller
servlet
21
Web Application
Frameworks
22
23
25
Apache Struts
JavaServer Faces (JSR-127)
Echo
Tapestry
26
Passion!
27