O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required