Assignment # 5

Learning Goals

Assignment

In this assignment, you will extend Assignment#4 to replace the scriptlet for the display of bean content with a custom tag.

The tag should have one attribute: the bean. The tag will iterate over the properties of the bean, and during each iteration will 1) store the property name and value in one of the shared scopes and 2) execute the contents of the custom tag inside the JSP.

This assignment includes the following 2 components:

  1. Develop a custom tag library (including a tld) with one custom tag. The tag handler for that tag will access the bean, store each property in a scoped variable, and execute the contents of the custom tag (to display the property name and value).
  2. Modify the "debug" page of HW#4 to include an invocation of your custom tag.

Hint

  1. You can hard code the type of the bean in your tag handler and tld, but think about how you would generalize it to all beans.