Developing JSPs for the Presentation Layer

You need to develop the JSPs named in the controller for displaying the information specified using the request parameters. You can obtain this information by using the jsp:useBean tag with the same ID or name as the one used to set the attribute in the controller.

Developing the Category View JSP

The first view, categoryview.jsp, displays the categories for the specified cat_id. The JSP implementing this view has the root Category instance at its disposal, thanks to the spoon-feeding by the controller. It can therefore generate the content using simple expressions and scriptlets on the view-helper instances.

Our strategy for the display will be to display the subcategories of the root along with ...

Get Java Server Pages from scratch 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.