The role of JSPs in presentation templatesAdded by IBM | Edited by IBM on January 8, 2014 | Version 9 (Show original)
|JSP files set up a context for the execution of the main component. Setting context includes setting paths, categories, and templates into the request, then executing the component in either a selected context or the current page context.
The following diagram shows how a JSP sets up a context for lists, slideshows, and carousels. The process enables the Content Template Catalog site to reuse components, but they are customized for each area of the site. Headers, result designs, and footers are pulled in by using the “portletContext” option in element and property tags. A JSP sets up a context for the “Block” template similar to the process shown. The JSP omits a “result design” because the component that is selected is not expected to be a list.
Parent topic: Component configuration items
- Presentation templates for lists, slideshow, and carousel use the "render component in context" JSP to execute a List component.
The JSP sets up a context, either one specified by the user in the "Context Override" element or the current page context if no override is selected.
- Tags in these components can use the "current" context if required, as the "render component in context" JSP has set up the current context.
- Tags in the list component can retrieve the header, result design, and footer from the list, slideshow, or carousel.