Exercise

Refactor the register.jsp page you developed on Day 13 to use custom tags. Write a useApplicant tag that provides support for accessing the Applicant Session bean and remove the need for the webagency.ApplicantBean class. Model your code on the changes to the advertise.jsp page and the new useCustomer tag you were shown in today's work. As a starting point for the code for your exercise, use the agency code. 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

  • deleteApplicant.jsp

  • updateApplicant.jsp

You can use the versions ...

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