Skip to Content
Beginning JavaServer Pages™
book

Beginning JavaServer Pages™

by Vivek Chopra, Sing Li, Rupert Jones, John T. Bell, Jon Eaves
February 2005
Intermediate to advanced
1296 pages
29h 21m
English
Wrox
Content preview from Beginning JavaServer Pages™

Chapter 17. Model View Controller

While the understanding and knowledge of syntax, libraries, and configurations are very useful, the place that effective application design takes in your arsenal of skills is many orders of magnitude more important. Developers who can build scalable, changeable applications that meet their requirements are highly regarded. Developers who don't have these skills, or simply don't apply them, and punch out the easiest, quickest solution are deemed to be hacks, in the derogatory sense of the word.

This chapter introduces one of many important architectural concepts that assist in the development of applications that have to display an interface to a user of a system. This is the Model View Controller architecture (or MVC). MVC's structure offers significant benefits for Web applications, and being familiar with it will enhance your understanding of a far wider range of concepts, some of which use or have borrowed ideas from MVC.

Specifically, this chapter covers the following:

  • A definition of MVC

  • An example of an MVC Model 2 implementation

  • An explanation of the components of MVC with respect to the example

As mentioned earlier, this chapter covers the MVC architectural concepts and not specific MVC frameworks. These frameworks are covered in Chapter 18, "Web Frameworks" (Spring and WebWork) and Chapter 19, "Struts Framework."

What Is MVC?

MVC is a design concept that attempts to separate an application into three distinct parts. One part is concerned with the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JavaServer Faces

JavaServer Faces

Hans Bergsten

Publisher Resources

ISBN: 9780764574856Purchase book