/MVC

Page 17

J2EE training from the author: http://courses.coreservlets.com/ 450

Chapter 15

Integrating Servlets and JSP: The MVC Architecture

Listing 15.5 NormalBalance.jsp (continued) <IMG SRC="/bank-support/Money.gif" ALIGN="RIGHT"> <jsp:useBean id="regularCustomer" type="coreservlets.BankCustomer" scope="request" /> <UL> <LI>First name: <jsp:getProperty name="regularCustomer" property="firstName" /> <LI>Last name: <jsp:getProperty name="regularCustomer" property="lastName" /> <LI>ID: <jsp:getProperty name="regularCustomer" property="id" /> <LI>Balance: $<jsp:getProperty name="regularCustomer" property="balance" /> </UL> </BODY></HTML>

Figure 15–2 The ShowCustomer servlet with an ID corresponding to a customer with a negative balance.

© Prentice Hall and Sun Microsystems Press. Personal use only.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.