11.1. Overview

Portlets follow the Model View Controller (MVC) design pattern. In this design pattern, portlets will usually use JSPs to generate the output. A portal page can be composed of many portlets along with the theme and skins.

11.1.1. Generating output

Portlets use the PortletRequestDispatcher.include() method to delegate content generation to JSPs or servlets.

Portlets are displayed on a portal page by using themes and skins. To allow portlets to dynamically match the current theme/skin in which they are contained, portlets should take advantage of cascading style sheets (CSS). When developing JSR 168 portlets, you should make every effort to use a WSRP style if available. You should also avoid using absolute positioning with CSS. ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools 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.