WebSphere Portal Sample portlets

 

+
Search Tips   |   Advanced Search

 


Overview

Sample portlets are available at portlet catalog by searching for navcode 1WP10004N.

Basic samples

Demonstrate the simplest portlet programming structures.

Struts Portlet Framework samples

Demonstrate how Struts applications can be converted to portlets.

Cooperative portlet samples

Demonstrate how portlets can use the property broker to exchange information or properties with each other.

 

Import sample portlets into Rational Application Developer

Follow these steps to import portlets from the sample package into Rational Application Developer.

  1. From the menu bar of Application Developer, click File New Project, and then select the appropriate portlet project. For example, to import jsrViewWorld.war, select Portlet Project (JSR 168). The New Portlet Project dialog opens.

  2. Enter a valid project name. For example, jsrViewWorld.

  3. Deselect Create a portlet.

  4. Click Show Advanced.

  5. Under the advanced options, verify the servlet version selected is 2.3, and that the target server selected is WebSphere Portal V5.1.

  6. Click Finish. The new project is created under the Dynamic Web Projects folder in the Project Explorer.

  7. Right click the new portlet project and select Import WAR file from the context menu. The Import dialog opens.

  8. Enter the location of the source WAR file that you want to import. For example...

    C:\rad\portlets\5.1\jsrViewWorld.war

  9. For Web project, select the name of the new portlet project that you just created, for example, jsrViewWorld.

  10. Check Overwrite existing sources without warning.

  11. Click Finish.

  12. Check the contents of the new portlet project for errors.

 

See also

Home |

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.

 

Rational is a trademark of the IBM Corporation in the United States, other countries, or both.