Exercise

Refactor the register.jsp page you developed on Day 13 to use custom tags. Write a getApplicant tag that provides support for accessing the Applicant Session bean and remove the need for the web.ApplicantBean class. Model your code on the changes to the advertise.jsp page and the new getCust tag you were shown in today's work. As a starting point for the code for your exercise, use the agency code from today's examples sub-directory of the case study on the accompanying CD-ROM. The existing agency.jsp page includes the code for creating a new applicant and for selecting an existing applicant for update or deletion.

You will need to create the following JSP files to support the register applicant functionality:

  • register.jsp

  • createApplicant.jsp ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.