WDD_lec_40 - MVC Model 2 Architecture AddressBook case...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
MVC Model 2 Architecture & AddressBook case study Lec - 40
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Last Lecture Review
Background image of page 2
Page-Centric Approach database Web-app = collection of JSPs request response JSP JSP + easy to get started (and carried away) - code is a mixture of presentation, business & data access logic: a maintenance nightmare - won’t scale - lots of duplication Credit: Java E-commerce – Martin Cooke
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Page-with-Bean Approach (MVC Model 1) database Web-app = collection of JSPs + beans request response JSP JSP + factors some of the business logic into beans - insufficient separation of logics bean Credit: Java E-commerce – Martin Cooke
Background image of page 4
MVC Model 2 Architecture
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MVC Model 2 Architecture Introduces a Controller Centralizes logic for Dispatching Requests to the next view based on: The Request URL Input Parameters Application state Single Point of Control For security & logging Encapsulates Incoming Data Into a form usable by the back-end MVC model.
Background image of page 6
MVC Model 2 Credit: www.javapassion.com
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Program Flow (Page with-Bean approach) addperson .jsp saveperson .jsp showperson .jsp PersonInfo PersonDAO JavaBeans uses uses addbookerror .jsp exception searchperson .jsp
Background image of page 8
addperson .jsp saveperson .jsp showperson .jsp PersonInfo PersonDAO
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/01/2010 for the course CS CS506 taught by Professor mr. umair javed during the Spring '10 term at Virtual University of Pakistan.

Page1 / 22

WDD_lec_40 - MVC Model 2 Architecture AddressBook case...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online