Skip Headers
Oracle® Fusion Middleware Oracle Reports User's Guide to Building Reports
11g Release 1 (11.1.1)

Part Number B32122-01
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

29.3 Modify the Web source of Your JSP Report

Now that you have created your paper report layout, you will learn how to take the same report and generate a JSP-based Web report that looks the same as your paper report.

To modify your JSP-based Web report:

  1. In the Report Editor, click the Web Source button in the toolbar to display the Web Source view.

    In the Web Source view, you need to change the dummy JSP code created by Oracle Reports Builder.

  2. In the Web Source view, find the text:

    <rw:dataArea id="yourDataArea">
       <!-- Report Wizard inserts the default jsp here -->


    Choose Edit > Find and Replace, then type dataArea in the Find what text box.
  3. Ensure that you place the cursor in between the opening and closing <rw:dataArea> tags, and choose Insert > Frame. This inserts the following code in your Web Source view:

    <rw:include id="include" src="..."> </rw:include>


    The rw:include tag enables you to include the outer frame of your paper layout in the Web Source view as JSP code. Adding a rw:include tag to the rw:dataArea tag enables you to include and reuse the existing paper layout in a Web layout.
  4. In the Object Navigator, locate the top level layout object frame of your paper layout. Specify its name in the src attribute of rw:include tag. The line should look like this:

    <rw:dataArea id="yourDataArea">
       <!-- Report Wizard inserts the default jsp here -->
    <rw:include id="mypaperreport_id" src="M_G_EMPLOYEE_ID_GRPFR">
  5. Click the Run Web Layout button in the toolbar to display your new JSP-based Web report in your browser. The report should look something like this:

    Figure 29-3 Web Design Output

    Description of Figure 29-3 follows
    Description of "Figure 29-3 Web Design Output"

    The report displays, in Web format, the employee data you specified. Here, you can see employee details, such as their name, email, hire date, salary, department to which they belong and their location.

  6. Save your report as myexcelreport_your_initials.jsp.