background image

Design Strategies

<< Account History Screen | Client Components >>
<< Account History Screen | Client Components >>

Design Strategies

Design Strategies
The main job of the JSP pages in the Duke's Bank application is presentation. They use
JavaServer Faces tags to represent UI components on the page, to bind the components to
server-side data stored in backing beans, and wire the components to event-handling code. To
maintain the separation of presentation and application behavior, most dynamic processing
tasks are delegated to enterprise beans, custom tags, and JavaBeans components, including
backing beans (see
"Backing Beans" on page 309
).
In the Duke's Bank application, the JSP pages rely on backing beans and other JavaBeans
components for interactions with the enterprise beans. In the Duke's Bookstore application,
discussed in Chapters
Chapter 3, "Getting Started with Web Applications"
to
"Including the
Classes, Pages, and Other Resources" on page 466
, the BookDB JavaBeans component acts as a
front end to a database.
FIGURE 37­4
Account History
Web Client
The Java EE 5 Tutorial · September 2007
1068