Importing portlets

 

+

Search Tips   |   Advanced Search

 

To import a portlet WAR file:

  1. Select

    File | Import | Select window | Other | WAR file | Next.

  2. Select a WAR file from the local file system using the Browse button.

  3. Select a Target runtime and decide whether to create an EAR project. Click Next.

  4. In the Web Libraries page, select libraries that are applicable to your imported project.

  5. Click Finish.

    If the Open Associated Perspective dialog appears, click Yes. A portlet project and an Enterprise Application (EAR) project are created, and the WAR file is imported.

After importing a portlet WAR file that uses the JSR 168 portlet API, make sure that the portlet deployment descriptor (portlet.xml) has a unique value specified for the ID attribute on the <portlet-app> element. To check this, double-click on the Portlet Deployment Descriptor entry for your project in the Project Explorer view. When the Portlet Deployment Descriptor editor opens, go to the Source tab.

 

Related concepts

Portlet APIs
Markup languages

 

Related tasks

Portlet applications
Testing and debugging portlets