Export the WAR file and install the portlet

Export the IBM® Rational® Application Developer project to a war file and install the portlet on a portal page.

Ensure you have properly followed the steps in Finish coding the portlet JSP.
  1. Export the Rational Application Developer project to a war file called PersOffers.war.
    1. Right click on Pers_Offers and select Export > WAR file.
    2. In the Destination field, type filepath/PersOffers.war.
    3. Select Export source files.
    4. Click Finish.
  2. Start WebSphere Portal.
  3. Log in as the Portal administrator (wpsadmin).
  4. Open Administration > Portlet Management > Web Modules.
  5. Click Install.
    Refer to this step for details on the task to perform on the Web Modules screen.
  6. Complete the installation of PersOffers.war. Verify installation was successful.
    In this graphic, a message appears in the Manage Web Modules component informing you that the Web module was successfully installed.
  7. Open Portlet Management > Portlets.
  8. Search for the Pers_Offers portlet and grant Privileged User to All Authenticated Portal Users.
  9. Create a new page called Pers Offers by completing the following steps:
    1. Select Portal User Interface > Manage Pages.
    2. Select Content Root > Personalization.
    3. Select New Page.
    4. Label the Page Pers Offer.
  10. Add the Pers_Offers portlet to the page.
    From Edit layout, you can add the Pers_Offers portlet to the page.
  11. Click Done.
    Note: The portlet is not ready to execute yet. If you try, you will get an error.
You can now import the Personalization workspace resource collections.