Creating a Sub-Page Oracle Fusion Middleware Online Documentation Library

6-8 Oracle Fusion Middleware Users Guide for Oracle Portal 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select a page group to own

the PLSQL page. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. In the Layout Appearance section, click the Create link next to the Pages

heading. If the page is a sub-page of an existing page rather than of the page group’s root page, follow the steps outlined in Section 6.3, Creating a Sub-Page . Then return to Step 5 in this section.

5. On the resulting page, select PLSQL from the Page Type list.

If PLSQL is not included in this list, the PLSQL page type has been excluded from the page group. If you have the required privilege, you can click the Configure link next to the Page Type list, and configure the page group to include this type. Otherwise, ask the Page Group administrator to include the type.

6. In the Display Name field, enter a Display Name for the page.

Use up to 256 characters of any kind. The Display Name identifies the page in the Page Groups portlet and the Portal Navigator.

7. In the PLSQL Code field, enter or paste the PLSQL code to execute when the

page is displayed. You do not need to include BEGIN and END statements, but you must include the final semicolon ;.

8. In the PLSQL Execute Options section, select either:

■ Public to execute the PLSQL code as the PUBLIC database schema. ■ Creator to execute the PLSQL code as the database schema that is mapped to your user account. ■ Schema to execute the PLSQL code as a specific database schema. Enter the database schema name, or click the Browse icon and select a schema from the Note: For more information on configuring a page group, see Chapter 4, Working with Page Groups Note: In the Oracle Portal user interface, an asterisk indicates a field that requires a value. Note: The PLSQL code you enter here is not validated. Validation is performed when an attempt is made to execute the code. If the code is good, it executes when the page is rendered. If the code is invalid, error messages are returned. Once you create the page, be sure to test the code. Creating Pages 6-9 list provided. This option is available only to users with the global privilege Manage on the object type All Schemas.

9. Click Create to create the page.

10. After you have created your page you may want to either create another page or edit the properties of the newly created page to add more detail.

6.6 Creating a JavaServer Page JSP

JavaServer Pages JSPs are HTML pages with special tags and embedded Java code that is executed on the Web or the application server. JSPs provide dynamic functionality to HTML pages. In addition to the inherent virtues of a JSP, you have the added benefit of Oracle Portal caching and security features, which can be applied to the JSPs you create through your portal. To create JSPs in Oracle Portal, the page group must be configured to allow JSP access, and the JSP page type must be included in the Page Group’s list of available page types. For more information, see Section 4.5.9, Enabling JavaServer Page Access to a Page Group and Chapter 5.2.3.3, Making a Page Type Available to a Page Group . This section describes two ways to create JSPs through the Oracle Portal user interface: ■ Section 6.6.1, Creating a JSP Through the Page Creation Wizard ■ Section 6.6.2, Creating a JSP By Copying Another Page You can also create JSPs for use in Oracle Portal outside the Portal user interface, for example with Oracle JDeveloper. For more information, see the Oracle JDeveloper page on the Oracle Technology Network, http:otn.oracle.comproductsjdevcontent.html .

6.6.1 Creating a JSP Through the Page Creation Wizard

To create a JSP through the Page Creation Wizard:

1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select a page group to own

the JSP. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. In the Layout Appearance section, click the Create link next to the Pages

heading. If the page will be a sub-page of an existing page rather than of the page group’s root page, follow the steps outlined in Section 6.3, Creating a Sub-Page . Then return to Step 5 in this section.

5. On the resulting page, select JSP from the Page Type list.

6. In the Display Name field, enter a Display Name for the page.

Note: For information on editing page properties, see Section 6.9, Editing Page Properties. .