Exporting a portlet project creates a WAR file that can be installed
on a WebSphere® Portal
server. To export a WAR file for a portlet project, follow the steps below.
- From the Project Explorer view, right-click the portlet project
and select . The Export wizard opens.
- On the WAR Export page, do the following steps:
- Enter the destination directory for the WAR file. A default name for the
WAR file is automatically provided, but you can change it.
- Select the Export Source files check box to include
source files in the WAR file.
- Select the Overwrite existing file to automatically
replace an existing WAR file for this project.
- Click Finish.
- Install the portlet WAR file on the remote WebSphere Portal server following
these steps:
- On the system where the WAR file is located, open a Web browser
to the Administration page of the remote WebSphere Portal
server.
- Open the page.
- On the Manage Web Modules page, click
the Install button.
- On the Installing a Web module page,
use the Browse button to locate the WAR file. Click .
- Add the installed portlet to a page following these steps:
- Open a Web browser to the Administration page
of the remote WebSphere Portal
server.
- Open ,
- Locate the page where you will add the portlet. Click on the Edit
Page Layout button (the pencil icon).
- Use the Add portlets buttons to add the
portlet to the page. Click Done to save the changes.