Using Servlets and JSPs Together: Model View Controller

J2EE includes a notion of the Model View Controller (MVC) pattern. This design pattern shows how multiple components can cooperate inside of the scope of a single J2EE application. In fact, the MVC pattern is not new. Developers using Smalltalk, a language that was one of the early object-oriented languages in computing, invented it. The pattern focuses on decoupling the graphical interface of an application from the code that actually does the work. This pattern turns out to be a very important idea that affects how code is built. MVC applies to other object-oriented languages, including Java.

MVC Components

There are three components in the MVC pattern in a typical J2EE Web application: ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.