If you want to implement Help mode for your portlet, select Help page, then If you want to implement About mode for your portlet, select About page, then Click Next to display the Public Portlet Parameters page

Creating Java Portlets 6-39 Figure 6–29 Public Portlet Events Page

32. On this page you can map parameters to events. For more information about using

events, see Section 7.2.3, Passing Parameters and Submitting Events.

33. Click Finish to generate the files for your portlet. The following files should be

generated for your project in the Application Navigator see Figure 6–30 : ■ Files for each portlet mode you selected ■ provider.xml ■ web.xml ■ index.jsp ■ _default.properties ■ serviceID.properties All these files are required to deploy and run the portlet successfully, except for index.jsp, which is used by Oracle JDeveloper for testing purposes. Figure 6–30 Application Navigator 6-40 Oracle Fusion Middleware Developers Guide for Oracle Portal

6.5.2 Adding Portlet Logic to Your Oracle PDK-Java Portlet

After you create the default implementation of your portlet, you can extend the sample code with your own business logic to implement the desired functionality and features. See the JPS or Javadoc for more information on adding functionality and features.

6.5.3 Validating Your Oracle PDK-Java Portlet and Provider

After you have built your portlet, you need to check the configuration to ensure that the portlet and its provider operate correctly. To validate your portlet and provider: 1. In Oracle JDeveloper, open the project you created in the previous sections. 2. In the Application Navigator, right-click the index.jsp file for you portlet and select Run. Your browser opens a page similar to the one shown in Figure 6–31 . Figure 6–31 Portlet Application Test Page

3. Click the link underneath Service Name.

Your browser opens with a page similar to the one shown in Figure 6–32 . Note that you need the URL from this page to register your provider, which is the next task. Note: This procedure is for testing purposes only. After this procedure, you still need to register your provider as described in Section 6.5.5, Registering and Viewing Your Oracle PDK-Java Portlet . For development and production, you should always deploy your portlet to an application server as described in Section 6.5.4, Deploying Your Oracle PDK-Java Portlet to an Application Server .