Struts Model Components

There are several different ways to look at what constitutes a model for Struts. The lines between business and presentation objects can get quite blurry when dealing with web applications—one application’s business objects are another’s data transfer objects (DTOs).

It’s important to keep the business objects separate from the presentation so that the application is not tightly coupled to one type of presentation. It’s likely that the look and feel of a web site will change over time. Studies show that the freshness of a web site’s appearance helps to attract new customers and keep existing customers coming back. This may not be as true in the business-to-business (B2B) world, but it’s definitely true for business-to-consumer (B2C) applications, which make up the majority of the web applications used today.

Get Programming Jakarta Struts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.