You will create the calculator project as a Portlet Project (JSR168) project. Follow these steps to create it:
In the menu, select File → New → Project.
In the New Project window, select the wizard for Portlet Project (JSR 168).
Click Next >.
If the Confirm Enablement window appears, asking if you want to enable the portal development role, click OK.
In the Portlet project page, type the name of the project Calculator.
Check the Create a portlet check box, if it is not already checked. Note: Typically, you do not need to create a portlet when you import a portlet WAR file into the project.
In the WebSphere Portal version box, select 5.1. Click Next >.
Figure 17-1. Portlet project (JSR 168)