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: Remote Portlet (HelloUserRemotePortlet)

The following sample portlet, called HelloUserRemotePortlet is a remote portlet:

Screen capture of sample remote portlet.

This portlet calls the Web application HelloUserWikExample. The HelloUserRemotePortlet application displays the string Hello user, where user is the name of the user who is logged on to the portal Web application. For details about the HelloUserRemotePortlet application, see Sample Web Application (HelloUserWikExample).

The following steps were used to create the HelloUserRemotePortlet. 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 resources file.

  4. Create the Web application.

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