# Creating a BI Beans JSP Application

## Process: Creating an application that uses BI Beans JSP tags

Use the following process to create an application that uses BI Beans JSP tags in JDeveloper:

1. Create an Application Workspace for a BI Beans Web application.

2. Create the BI Beans data objects that the application requires.

3. Create the JSP pages for the application.

## Creating BI JSP pages for an application

In the New Gallery, you can choose to create either of the following kinds of BI JSP pages in your project:

- Empty BI JSP page -- Use when you want to work with tags from either of the following tabs in the Component Palette: BI Beans General or BI Beans Lists. These tags include presentations, the BI Beans Catalog explorer, and many other tags that are used in pages that contain presentations.

- BI Beans Dialog or Wizard JSP page -- Use when you want to work with tags from the BI Beans Dialogs and Wizards tab in the Component Palette. These tags, which require a full JSP page, let you customize presentations and calculations or create new presentations or calculations. For details about inserting a dialogs or wizards, see Adding a BI Beans Dialog or Wizard to a JSP Application.

Important: Both kinds of pages are already initialized with all the tags that are required for a BI Beans JSP application. These tags include BIThinSesssion, BIInitTags, BIBody, InsertHiddenFields, and Render.

### Procedure: Creating an empty BI JSP page

To create an empty BI JSP page, use the following procedure:

1. In the Applications-Navigator, right-click the BIClient project and select New. The New dialog box is displayed.

2. In the Categories columnn, under Business Intelligence, select JavaServer Pages (JSP).

3. In the Items column, double-click Empy BI JSP age. The Empty BI JSP Page dialog box is displayed.

4. Complete this dialog box and choose OK. The JSP Visual Editor displays the new JSP page. Note: At any time, you can use the Code tab at the bottom of this editor to examine the code that has been generated.

As soon as the JSP page is displayed, the Component Palette for JSP tags is also displayed beside the JSP Visual Editor.

### Procedure: Adding tags to the JSP page from the Component Palette

To add BI Beans JSP tags from the BI Beans General tab or the BI Beans Lists tab of the Component Palette, use the following procedure:

1. Click in the JSP page and insert several blank lines to provide space for inserting tags into the page in the visual editor.

2. For each BI Beans JSP tag that you want to insert in the page, use the following procedure:

   1. Drag-and-drop the tag from the Component Palette to the desired location in the visual editor. A wizard is displayed to assist you in defining the tag.

   2. Complete the wizard that is displayed to assist you in defining and rendering the tag.

Note: You can also use tags from the HTML palette if you need generic tags for a page. For example, you might want to use the HTML Table tag to assist in organizing the objects in a page.

### Procedure: Editing JSP tags in the visual editor

To edit a BI Beans JSP tag after it is inserted in the visual editor, right-click the image in the editor and select either Edit Define Tag or Edit List Rendering Options (available for list tags only) from the menu. An editor is displayed to accept your changes for the tag.

### Procedure: Deleting JSP tags in the visual editor

To delete a BI Beans JSP tag in a page that is displayed in the visual editor, right-click the image for the tag and select Delete from the menu. Typically you receive a message that asks you if you want to delete associated tags. For example, if you delete the renderer for a tag, you most likely will also want to delete the associated definition tag.

Note: You can also delete JSP tags in the Structure Window of JDeveloper.

Related Topics

List of BI Beans JSP Tags