User Tools

Site Tools


mvc

This is an old revision of the document!


Table of Contents

MVC

This lecture covers the MVC design pattern for web applications in the context of a mini-project. This includes writing servlets to control and dispatch, models to model the data and the business rules, and JSP pages to author the view.

Outline

  • The controller must control and dispatch by relying on the Model and forwarding to a JSP
  • Tomcat provides three Map<String,Object> places to hold data with three levels of scope: request, session, and application.
  • State can be captured using the session object. Its API allows us to detect the start of new sessions.
  • The model is best packaged as a Java package.
  • The model uses beans and POJOs.

To Do

  • Read the rest of Chapter 6.
  • Do Lab 4.

Slides from Lecture

/course/4413/_media/:44jsp.swf [505,383]

mvc.1192721308.txt.gz · Last modified: 2007/10/18 15:28 by roumani