Oracle Business Intelligence Beans Sample

JSP Application Using Frames

Overview

This sample demonstrates how Thin BI Beans can be used in a JSP application with HTML frames support. The explorerTree tag, explorerDetail tag and Presentations tag are inserted into different JSPs in separate HTML frames respectively. A user can click on a folder on the explorer tree to open its contents on the details page in another HTML frame. A user can also click on a presentation name in the details page to see the actual presentation on the viewer page in a separate frame.

Setup Requirements

If you have not already done so, you must perform several installation and configuration tasks, then open the workspace servlet\Servlet.jws under the samples directory within JDeveloper. All the necessary files for this sample can be found in the frames.jpr project under the Servlet.jws workspace.

Code Highlights

The following section provides a walkthrough and explanations of the code fragments: The processRequest method is called by the base class after a successful user login. The first step of the application is to initialize the thin beans. The following code initializes a crosstab thin bean.

<orabi:ExplorerTree id="explorer" explorerDetailPage="detail.jsp" explorerDetailFrame="detail" explorerDetailId="detail" />

The explorerDetailFrame tag defines the HTML frame where the explorerDetails tag is located (i.e. detail).

<orabi:ExplorerDetail id="detail" openPage="view.jsp" openFrame="view" presentationId="view" />

The openFrame tag defines the HTML frame where the presentation should be opened (i.e. view)

How To Run

To run the BIViewServlet example within JDeveloper, simply right-click on frames.html under frames.jpr, and choose Run frames.html . When the application appears in a browser, you should see 3 frames with the explorer tree on the left, the details page on the top right and a blank frame on the bottom right. Click on a folder in the explorer tree to see its contents in the details page. Click on a presentation name in the details page and the presentation should appear on the bottom right.

oracle logo  
Copyright © 2002, 2003 Oracle. All Rights Reserved.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.