4.4. JSP Web Component Client

The Music EJB can interact with web clients, too. In this section, we'll show you how a JSP client can access the Music Collection database using the same EJB component.

The web component client uses three JSP programs. The first one, musicGet.jsp, displays recording titles and collects user input. Figure 4-5 shows a screen shot of this page.

Figure 4-5. Screen Shot of Initial JSP Web Client Program for the Music EJB

The second JSP program, musicPost.jsp, displays track information for a recording title. Figure 4-6 shows a screen shot after the user selects “Graceland” and clicks the “View Tracks” button.

Figure 4-6. ...

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.