The portlet API includes a GenericPortlet abstract class that implements the Portlet interface and the PortletConfig interface. This class provides access to the following common portlet functionality:
The render method is implemented to determine current portlet mode and to call the appropriate method.
The class includes an easy mechanism to obtain portlet’s initialization parameters.
The class includes an accessor method to obtain a reference to the PortletContext interface that enables portlets to interface with the container.
Develop the portlet class files.
A portlet must implement the javax.portlet.Portlet interface. This interface defines the basic behavior that the portlet container expects from a portlet.
Create the portlet specific XML fragments and package it into a WAR file.
Deploy the Portlet web application.
Create and view the Portlets.