On this page you can map parameters to events. For more information about using Click Finish to generate the files for your portlet. The following files should be

Creating Java Portlets 6-41 Figure 6–32 Provider Test Page

6.5.4 Deploying Your Oracle PDK-Java Portlet to an Application Server

After you finish the wizard and successfully generate your portlet, you are ready to deploy it to the Oracle WebLogic Server WLS. The following sections describe how to deploy an Oracle PDK-Java portlet to WLS. To create and deploy the WAR file: 1. In the Application Navigator, right-click the project that contains your portlet and select New.

2. In the New Gallery, expand the General category and select Deployment Profiles.

3. In the Items list, select WAR File and click OK. The Create Deployment Profile --

WAR File dialog box opens. 4. In the Deployment Profile Name field, enter a meaningful name for the deployment profile for example, myj2eeportlet.

5. Click OK. The WAR Deployment Profile Properties dialog box opens.

6. Under Web Application’s Context Root, select Specify Java EE Web Context Root

and enter the context root in the corresponding field, for example myj2eeportlet1.

7. Select the Contributors node under WEB-INFlib.

8. Select Portlet Development.

9. Click OK. The Project Properties dialog opens.

10. Click OK.

11. In the Application Navigator, right-click your project and select Deploy, then

select the deployment profile, next select to, and finally select the application server connection to which you want to deploy the portlet.

12. When the Deployment Finished message displays in the Deployment Log at the

bottom of Oracle JDeveloper, verify that no errors occurred. 13. Construct the URL for your portlet as follows: http:host:portcontext-rootproviders 6-42 Oracle Fusion Middleware Developers Guide for Oracle Portal where host is the server to which your provider has been deployed. port is the Oracle Web Cache HTTP Listener port from the Ports tab of the Application Server Control Console main page. context-root is the Web Applications Context Root, which is found in the WAR Deployment Profile Properties under General. 14. In a Web browser, enter the URL from the previous step to ensure that it is working. You should see a page similar to the one in Figure 6–33 . Figure 6–33 PDK - Java Test Page for Portlets

6.5.5 Registering and Viewing Your Oracle PDK-Java Portlet

After youve created and deployed the provider and its portlets, you should register the provider with Oracle Portal. Registering your provider gives Oracle Portal the information it needs to locate and communicate with that provider. After you register a provider, the provider and its portlets become available in the Portlet Repository. They are also listed in the Oracle Portal Navigator.