Main Menu
Lecture 2
Lecture 3
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

Model View Controller Design Pattern

The Model View Control (MVC) design pattern separates an application into 3 parts.

For Example :

Model - classes - Car
View - User interface - Web Page
Controller - application logic - CarComponent

Link parts of web page to parts of object

Values on page change when object values change

WOFramework is the connection between WOApplication and pages

Component

A web page or part of a web page

Associated with a HTML template that gives the page its look and feel

Refers to objects whoses values are to be displayed to the user

Use an object graph to model your business

Standard components come in the WO framework

WORequest and WOResponse are two classes in the WOFramework

or you can design your own

Associated with each comonent is a Java class with methods to get and put the variables