IFrame Integration Example

As a further example, the HTML markup below generates a simple web page with two divs, the top div containing a heading and some text, and the bottom div containing an IFrame with embedded report. To run this example, replace “remotehost” below with the address of the remote server on which the report engine is running.

Read how InetSoft saves money and resources with deployment flexibility.
    <title>IFrame Integration Example</title>
    <meta http-equiv="content-type" content="text/html;
       charset=utf-8" />
 <link href="hostStyle.css" rel="stylesheet" type="text/css" />
    <div id="TitleDiv">
    <h1>IFrame Integration Example</h1>
    <p>This is an example of IFrame integration.</p>
      <div id="IFrameDiv">
    <iframe src="http://remotehost:8080/sree/
       Reports?op=frameReplet&name=OrderList" frameborder="1"
       width="100%" height="100%">
    <p>Text for obsolete browsers.</p>

The style of the above web page, including the size and placement of the div containing the IFrame, is controlled by the following generic CSS formatting instructions (hostStyle.css).

html, body {
    font-family: arial;
 div {
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    background: white;
 div#IFrameDiv {
    height: 75%;
 div#TitleDiv {
    height: 20%;

Advantages of IFrame Integration

IFrame integration is the recommended alternative to JSP-based integration, and there are several advantages that make IFrames the preferred approach in most cases:

  • IFrames are easier to use, and Style Intelligence's report design architecture is geared toward IFrame integration. JSPs can be time-consuming to build and require knowledge of the JSP Tag Library.
  • Reports that are integrated using JSP technology do not offer the end user Ad Hoc reporting functionality or portal utilities. These features are fully retained in IFrame-integrated reports.
  • Certain application servers (WebLogic) require specific configurations and settings when using the JSP Tag Library. This complexity is avoided in the IFrame approach.