10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Client<br />

1060<br />

FIGURE 37–4 Account History<br />

Design Strategies<br />

<strong>The</strong> main job of the JSP pages in the Duke’s Bank application is presentation. <strong>The</strong>y use<br />

<strong>Java</strong>Server Faces tags to represent UI components on the page, to bind the components to<br />

server-side data stored in backing beans, and wire the components to event-handling code. To<br />

maintain the separation of presentation and application behavior, most dynamic processing<br />

tasks are delegated to enterprise beans, custom tags, and <strong>Java</strong>Beans components, including<br />

backing beans (see “Backing Beans” on page 307).<br />

In the Duke’s Bank application, the JSP pages rely on backing beans and other <strong>Java</strong>Beans<br />

components for interactions with the enterprise beans. In the Duke’s Bookstore application,<br />

discussed in Chapters Chapter 3, “Getting Started with Web Applications,” to “Including the<br />

Classes, Pages, and Other Resources” on page 463, the BookDB <strong>Java</strong>Beans component acts as a<br />

front end to a database.<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!