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 that we have properly followed the steps in Coding the portlet JSP.
- Export the Rational Application Developer project to a war file called PersOffers.war.
- Right click Pers_Offers and select Export > WAR file.
- In the Destination field, type filepath/PersOffers.war.
- Select Export source files.
- Click Finish.
- Start WebSphere Portal.
- Log in as the Portal administrator (wpsadmin).
- Click the Administration menu icon. Then, click Portlet Management > Web Modules.
- Click Install.
- Complete the installation of PersOffers.war. Verify that installation was successful.
- Open Portlet Management > Portlets.
- Search for the Pers_Offers portlet and grant Privileged User to All Authenticated Portal Users.
- Create a new page called Pers Offers by completing the following steps:
- Select Portal User Interface > Manage Pages.
- Select Content Root > Personalization.
- Select New Page.
- Label the Page Pers Offer.
- Add the Pers_Offers portlet to the page.
- Click Done.
The portlet is not ready to run yet. If you try, you get an error.
What to do next
We can now import the Personalization workspace resource collections.
Parent topic: Develop a personalized portletPrevious topic: Coding the portlet JSP
Next topic: Import Personalization Workspace resource collections