Archive for the ‘Portlets’ Category

Portlet Intro

Posted: October 10, 2011 in Portlets

Portal is a web application that provides

  • personlisation
  • single sign on
  • content aggregation

from a number of different sources and hosts the presenation on to a webpage.

Portal Architecture

Portlet Architecture

The portal Web application processes the client request, retrieves the portlets on the user’s current page, and then calls the portlet container to retrieve each portlet’s content. The portlet container provides the runtime environment for the portlets and calls the portlets via the Portlet API. The portlet container is called from the portal via the Portlet Invoker API; the container retrieves information about the portal using the Portlet Provider SPI (Service Provider Interface).


A portlet is a Java-based Web component that processes requests and generates dynamic content. The content generated by a portlet is called a fragment, a piece of markup (e.g., HTML, XHTML, or WML (Wireless Markup Language)) adhering to certain rules. A fragment can be aggregated with other fragments to form a complete document.

A portlet’s content normally aggregates with the content of other portlets to form the portal page.

A portlet container manages a portlet’s life cycle.


What are Portlets ??

Posted: October 10, 2011 in Portlets
Tags: ,

A portlet application is a deployable unit that contains one or more portlets. It encapsulates all the resources required by the portlets; such as Java classes, JSP files, images, deployment descriptors, libraries and other resources.

Portlets are reusable Web modules that run on a portal server and provide access to Web-based content, applications, and other resources. Companies can create their own portlets or select portlets from a catalog of third-party portlets. Portlets are intended to be assembled into a larger portal page, with multiple instances of the same portlet displaying different data for each user.

Portlets form a design pattern where a Portal servlet combines one or more component Portlets into a web page. Because the portlets are written as components, they can be cleanly written and tested. Applications which currently use many servlet includes might be more cleanly written as portlet applications.

Developing a Portlets