SAS 9.1.3 Integration Technologies » SAS Web Infrastructure Kit: Developer's Guide


Developing Custom Portlets
Development Steps
Creating a Deployment Descriptor
Creating Display Resources Files
Developing the Presentation JSP Page
Creating Action Classes
Implementing Portlet Help
Creating a PAR File
Use Cases
Simple Display Portlet
Localized Portlet
Portlet Template (Editable Portlet)
Remote Portlet
Tips and Best Practices
Using the Portlet API
Sample Portlets
Localized Display Portlet (Welcome)
Interactive Form Portlet (FormExample)
Portlet Template, or Editable Portlet (DisplayURL)
Web Application (HelloUserWikExample)
Remote Portlet (HelloUserRemote
Portlet
Sample Portlets

Sample: Localized Display Portlet (Welcome Portlet)

Screen capture of Welcome portlet

The sample portlet called Welcome is a local portlet that runs inside the portlet container. The Welcome portlet displays localized text using the user's locale (language and country) preference, and is not interactive.

The following steps were used to create the Welcome portlet. Click on each step to display details.

  1. Create a directory structure for the portlet.

  2. Create the portlet deployment descriptor (portlet.xml).

  3. Create the display page (Welcome.jsp).

  4. Create the action class (WelcomeAction.class).

  5. Create resource bundles to support eleven different locales.

  6. Create translated titles and descriptions in the portletDisplayResources.properties files to support eleven different locales.

  7. Create the PAR file, and deploy and test the portlet.