6.6. Web Component Client

Armed with the Customer (entity) EJB and CustomerSession (session) EJB, we now add login and sign up functionality to our Music Collection shopping application. Figure 6-8 depicts the web component's structure and the JSP files that supply the functionality. The new or updated components are white. (You may want to compare its structure to the previous version shown in Figure 5-6 on page 166.)

Figure 6-8. Relationship Among JSP Files After Adding Customer Database Verification and Creation

The sign up process requires files signUp.jsp to collect the new customer data and signUpPost.jsp to process it. The login page (file ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.