Exporting and installing portlet projects

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.

  1. From the Project Explorer view, right-click the portlet project and select

    Export | WAR file. The Export wizard opens.

  2. On the WAR Export page, do the following steps:

    1. Enter the destination directory for the WAR file. A default name for the WAR file is automatically provided, but you can change it.

    2. Select the

      Export Source files check box to include source files in the WAR file.

    3. Select the

      Overwrite existing file to automatically replace an existing WAR file for this project.

    4. Click Finish.

  3. Install the portlet WAR file on the remote WebSphere Portal server following these steps:

    1. On the system where the WAR file is located, open a Web browser to the

      Administration page of the remote WebSphere Portal server.

    2. Open the

      Portlet Management | Web Modules page.

    3. On the

      Manage Web Modules page, click the

      Install button.

    4. On the

      Installing a Web module page, use the Browse button to locate the WAR file. Click

      Next | Finish.

  4. Add the installed portlet to a page following these steps:

    1. Open a Web browser to the

      Administration page of the remote WebSphere Portal server.

    2. Open

      Portal User Interface | Manage Pages,

    3. Locate the page where you will add the portlet. Click on the

      Edit Page Layout button (the pencil icon).

    4. Use the

      Add portlets buttons to add the portlet to the page. Click

      Done to save the changes.

For more comprehensive information on installing and adding portlets to a portal site, see the WebSphere Portal Product Documentation.

 

Related concepts

Testing and deploying portlets that reference J2EE modules

Related information

Publishing portlets

Network considerations