Beruflich Dokumente
Kultur Dokumente
MVC Framework
for Web
Applications
Ian F. Darwin
http://www.darwinsys.com/
1
Ian Darwin
Computer Consultant, Mentor, Developer, Trainer
PARC
Divides interactive
Controller View
application into:
Model (data modelling
real world) MVC Benefits:
maintainability
View (display,
(lack of code inter-
presentation) dependence)
Controller - responds to
user actions
Ian Darwin, http://www.darwinsys.com/
5
What is MVC? (cont’d)
Familiar example:
slide show
program: change
text in one View, it
updates in all
Views
<jsp:include...>
Image data
instant MVC?
Yes, BUT!
CustomerDAO
JDBC
SQL-based
DBMS
maintainability, scaleability
code re-use
See http://www.onjava.com/pub/a/onjava/2002/10/
30/jakarta.html - Lessons From The Trenches
?
Applications
Question
&
Answer