Create a Portlet Project in RAD Specify a name for the project Choose the target runtime as “WebSphere Portal v6,1” Portlet API can be JSR 168/JSR286/IBM portlet. For Portlet Types – you can choose from Empty/Basic/Struts/Faces portlet. Since I am trying to deploy a simple application, I choose Basic Portlet.
To create a portlet with view mode alone.
To create a portlet with view and edit mode, select “Add preference handling to diplay and edit preferences.
This creates a portlet application that extends a portlet class: the GenericPortlet class of the JSR 168 portlet API. This portlet type contains the portlet class, sample JSP files that are used in rendering the portlet, and a sample Java bean.
Project Lesson_4 and its folder structure
Now, lets deploy the portlet Lesson_4. Export the project as a war file.
Login to the WPS page using a browser – http://<host>:10040/wps/myportal
In the ‘Web Modules’ click on ‘Install’
Browse and upload the war file.
By default, the display name of PA_Lesson_4 is given, indicating it as a Portal Application
When you see this page, Lesson_4 is deployed in WPS.
Navigate to ‘Manage Pages’ to include ‘Lesson_4’ in a page.
Edit the page using the ‘pencil’ icon
Add the portlet to any frame of your choice by clicking the ‘Add Portlets’ button.
Search for the portlet and click ‘OK’
You can see the portlet added to the page
View the page in the browser, the portlet can be seen.