Browse Prior Art Database

Method for a Java* Applet to Display an HTML Document in a Window of the Enclosing Browser

IP.com Disclosure Number: IPCOM000012051D
Original Publication Date: 2003-Apr-03
Included in the Prior Art Database: 2003-Apr-03
Document File: 2 page(s) / 43K

Publishing Venue

IBM

Abstract

Disclosed is a novel method by which a Java* applet may cause the Web browser in which it is operating, to display a page of data that is contained within a buffer in the applet. The page of data must be formatted as HTML, and will be displayed in a window of the browser.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 1 of 2

  Method for a Java* Applet to Display an HTML Document in a Window of the Enclosing Browser

This method provides a solution to an apparent oversight in the java.applet.AppletContext class, where applets are not able to cause their enclosing browsers to display in a direct manner, an HTML document contained within the Applet.

The most common indirect method of accomplishing HTML display from an applet, is to have the applet write the HTML document to a local file, and then use the AppletContext.showDocument() method to display the contents of the file. This method will not work for a diskless workstation. More significantly, changed behavior accompanying Internet Explorer 6.0** has rendered display of local files inoperative. Additionally, there tend to be bugs in the implementation the AppletContext.showDocument() method for local files in the Java virtual machines (JVMs) of many browsers.

Another method is to have the applet upload the HTML document to a Web server, then provide the URL (Universal Resource Locator) for the uploaded document to the showDocument() method. This method results in undesirable network traffic, and creates a bottleneck at the Web server. Other indirect methods can be found, but they tend to be unnecessarily complicated, and usually rely on browser specific functionality, which make them undesirable as a general method.

The disclosed method makes use of a TCP/IP connection from one thread of the applet to another thread of the same apple...