An Internet web application interfaces to a machine to give users information about the status of the machine. The information on the status of the machine is constantly changing. This design only dynamically builds a web page when the page is requested for viewing. Once built, the page is retained so...http://www.google.com/patents/US20020169802?utm_source=gb-gplus-sharePatent US20020169802 - System and method for improving the performance of a web application by building only requested web pages only in a requested human language

System and method for improving the performance of a web application by building only requested web pages only in a requested human languageUS 20020169802 A1

Abstract

An Internet web application interfaces to a machine to give users information about the status of the machine. The information on the status of the machine is constantly changing. This design only dynamically builds a web page when the page is requested for viewing. Once built, the page is retained so that the next time it is requested, if the information it contains has not changed, the page can be served without having to be rebuilt. If the information has changed, the design will not update the page until the page has been requested. In addition, the page is only built in the human language requested.

Images(4)

Claims(6)

What is claimed is:

1. A method of reducing the amount of processing work required to support web interfaces, comprising:

(a) receiving a request to view a web page;

(b) ascertaining whether new data exists for the web page;

(c) updating the web page with any new data in response to step (a);

(d) building the web page only in a human language requested by the user;

(e) saving the web page for use until data therein changes; and

(f) transmitting the web page to the requesting user.

2. The method of claim 1 wherein step (d) comprises building the web page in every human language requested by the user.

5. A system for reducing the amount of processing work required to support web interfaces, comprising:

a memory for storing data pertaining to a web page;

input means for updating the memory with respect to the web page;

processor means for processing requests by users to view the web page;

control means for building and updating the web page only when at least one of said users requests the web page, wherein the control means builds the web page only in a human language requested by said at least one of said users.

6. A computer program product, residing on a computer usable medium and having computer usable program means embodied therein, said computer usable program means comprising:

means for storing data pertaining to a web page;

means for allowing a user to request the web page;

means for building the web page in response to a request by the user;

means for limiting the construction of the web page to events wherein the user has requested to view the web page; and

means for limiting the construction of the web page to human languages that are requested by the user.

Description

BACKGROUND OF THE INVENTION

[0001]

1. Technical Field

[0002]

This invention relates in general to a method and system for building web pages, and in particular to a method and system for improving the performance of web applications by building only requested web pages, and building the requested web pages only in the human language in which they were requested.

[0003]

2. Description of the Related Art

[0004]

In the prior art, Internet web applications that interface with computer systems give information to users about the status of those systems. Since the information on the status of the systems is constantly changing, a typical web application design dynamically builds web pages every time the information changes, regardless of actual current usage. Conventional designs not only constantly build the web pages, but they also build the web pages in every human language that the systems are enabled to support. This latter step of multi-language web page construction also takes place regardless of actual current usage or requests.

[0005]

For example, an English language-based web application may be accessed primarily by English language-speaking users. However, when new information is available for the web page, the system will automatically update every affected web page and then build all of the web pages in every other supported human language (e.g., eight other human languages such as German, Spanish, Italian, etc.) even though the new information has not been requested by any user, and certainly not in any language other than English. Such systems inefficiently consume valuable machine time by doing much more processing than is necessary, thereby reducing performance for users and the customer satisfaction of the users. Thus, an improved system for reducing the amount of computer time and/or processing work required to support web interfaces would be desirable.

SUMMARY OF THE INVENTION

[0006]

One embodiment of a method and system according to the present invention is an Internet web application that interfaces to a machine to give the user information about the status of the machine. The information on the status of the machine is constantly changing. This design dynamically builds a web page only when the page is requested for viewing. Once built, the page is retained so that the next time it is requested, if the information it contains has not changed, the page can be served without having to be rebuilt. If the information has changed, the design will not update the page until the page has been requested. In addition, the page is only built in the human language requested. For example, if a machine is located in France, the main language used is French, even though eight other languages are offered. In this example, the web page is only built in French. If some other language is requested, that language also is built, but machine resources are not wasted building pages that are not requested.

[0007]

The foregoing and other objects and advantages of the present invention will be apparent to those skilled in the art, in view of the following detailed description of the preferred embodiment of the present invention, taken in conjunction with the appended claims and the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008]

So that the manner in which the features, advantages and objects of the invention, as well as others which will become apparent, are attained and can be understood in more detail, more particular description of the invention briefly summarized above may be had by reference to the embodiment thereof which is illustrated in the appended drawings, which drawings form a part of this specification. It is to be noted, however, that the drawings illustrate only a preferred embodiment of the invention and is therefore not to be considered limiting of its scope as the invention may admit to other equally effective embodiments.

[0009]

[0009]FIG. 1 depicts a schematic diagram of an illustrative embodiment of a system constructed in accordance with the present invention.

[0010]

[0010]FIG. 2 is a layer diagram of the programs in the system of FIG. 1 that cooperate to automatically connect to a remote data processing system according to the present invention.

[0011]

[0011]FIG. 3 is a schematic operational diagram of the system of FIG. 1.

[0012]

[0012]FIG. 4 is a high level, logical flowchart of an illustrative embodiment of the method and system of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0013]

The present invention may be executed in a variety of systems including computer systems having various operating systems. The computer system may be a personal computer, a network computer, a midrange computer or a mainframe computer. In addition, the computer may be a stand-alone system or part of a network such as a local-area network (LAN) or a wide-area network (WAN). For the purposes of illustration, one embodiment of the present invention, as described below, is implemented utilizing a personal computer.

[0014]

Referring now to FIG. 1, there is depicted a block diagram of a personal computer (PC) 112. PC 112 includes a system bus 210 that is connected to a central processing unit (CPU) 212 and to memory, including read only memory (ROM) 214 and random access memory (RAM) 216. System bus 210 is coupled to a PCI local bus 218 through a PCI host bridge 220. PCI local bus 218 is connected to additional nonvolatile data storage devices, such as one or more disk drives 222, and to an audio adapter 230 and a graphics adapter 232 for controlling audio output through a speaker 234 and visual output through a display device 236, respectively. A PCI-to-ISA bus bridge, such as expansion bus bridge 238, connects PCI local bus 218 to an ISA bus 240, which is attached (through appropriate adapters) to a keypad 242 for receiving operator input.

[0015]

Also included within PC 112 are data ports for communicating with external equipment, such as other data processing systems. The data ports include, without limitation, a serial port 250 attached to ISA bus 240 for linking PC 112 to remote data processing systems (such as a bridge) via a modem (not illustrated) and a communications adapter 252 attached to PCI bus 218 for linking PC 112 to other stations of a LAN (such as clients).

[0016]

PC 112 also contains software applications that are stored on the data storage devices and loaded into RAM 216 for execution by CPU 212. Among those applications is a communications program, such as communications manager 260, that manages the exchange of information between the LAN and remote data processing systems. Included in communications manager 260 is a connection initiator 261 for establishing dial-up connections to remote data processing systems. Communications manager 260 also includes Internet sharing software 262 that enables multiple LAN stations to access the Internet via a single connection. In the illustrative embodiment, PC 112 also includes a connection schedule file 264, which preferably is stored in disk drive 222, and Internet sharing software 262 includes a request predictor 265 that utilizes connection schedule file 264 to trigger connection initiator 261 in advance of anticipated communication requests.

[0017]

Connection schedule file 264 is maintained by a schedule editor and/or an automatic schedule modifier, each of which is preferably also included in Internet sharing software 262. PC 112 also includes a web server 270 that allows a client to retrieve and view information from the Internet.

[0018]

With reference now to FIG. 2, there is depicted a layer diagram of the software applications within PC 112 that cooperate to provide the functionality of the present invention according to the illustrative embodiment. At the highest level of the layer diagram are the software application programs 310, including communications manager 260 and web server 270. At the intermediate level is an application program interface (API) 320, through which application programs 310 request services from the operating system 330. Operating system 330, which occupies the lowest level of the layer diagram, is a network operating system. As such, in addition to managing the operations of PC 112 (by performing duties such as resource allocation, task management, and error detection), operating system 330 also provides tools for managing communications within the LAN and between LAN stations and remote processing systems. Included within operating system 330 is a kernel 332 that manages the memory, files, and peripheral devices of PC 112. The lowest level also includes device drivers, such as a keypad driver 340 that kernel 332 utilizes to manage input from and output to peripheral devices. FIG. 3 schematically illustrates the present invention as a system utilizing PC 112 and web server 270 for communicating with users 81 through a network 83.

[0019]

Referring now to FIG. 4, there is illustrated one embodiment of a high level, logic flow diagram of a system and method for reducing the amount of computer time and/or processing work required to support web interfaces. In the version shown, the algorithm begins as illustrated at block 401. When a request to view an HTML or web page is generated by a user, as shown in block 403, the system determines whether the page exists statically (has already been built and stored) in the human language that it was requested in, as depicted at block 405. If the page exists then the web page is served up as depicted by block 411. If not, the web page is dynamically built in the requested language with any updated data, as illustrated at block 407, and then stored (cached locally and/or saved), and transmitted to the requestor, as depicted at block 409. If the requested page is stored, the page is served to the user and the system then ends or returns, as illustrated at block 419.

[0020]

The web page is only built in the human language requested by the user. For example, if the user made a request in the English language, the web page would only be built (including the new information) in the English language. The web page would not be built in any other human language until a specific request for such a language is received. The system is capable of building the page in all supported languages. Finally, after the page is built with the new information only after a user requests to view it, and only in the language that was requested, the page is locally cached and/or saved on hard disk for later use, and transmitted to the requesting user. The system then awaits additional requests from users and for additional new data or information for the web page.

[0021]

The present invention may be implemented in a variety of systems or applications. For example, IBM Corporation's MagstarŪ 3494 Tape Library Specialist is a web interface to the MagstarŪ 3494 Automated Tape Library. Since the software that controls the management of the library runs on a PC and there are critical items needed to control the library, taking MIPS or processor cycles to build web pages is a significant concern. Anything developers can do to reduce the amount of time required or the amount of work required to support the web interface would be desirable.

[0022]

In this implementation of the present invention, the web interface provides users with information about the status of the library. The status of the library is constantly changing as the library runs. The interface cannot cause any disruption to the operation of the library that it is monitoring, but must provide current information on status. To solve this problem the interface of the present invention was developed between the web server and the library. When a piece of information changes on the library that the web interface is interested in (i.e., new data or information), the library writes a variable file to the hard drive which contains all the dynamic information needed to update a particular web page. Each time information changes on the library, a new variable file is written to the hard drive and any existing web pages containing the old information are deleted. These variable files contain labels and rules that the web server knows how to interpret. The Library writes a label with a rule following it. The rule tells the web server what type of information follows and what to do with it. Some rules tell the web server how to find a value in a DLL (Dynamic Link Library) for a translated word. Other rules tell the web server to fill in a literal string into the HTML page.

[0023]

When a request is made by a user to view a particular web page, the web server uses a static HTML file (also located on the hard drive) that contains all the static information to build the requested web page and merges in the dynamic information that the library stored in the variable file the last time the information changed. The static HTML contains place holders for the dynamic information. The web server must match up the dynamic information with the static place holders located in the HTML file.

[0024]

The user can select a supported language for the page to be displayed in and the web server will select the static HTML file in the requested language and merge the dynamic data in the requested language and display the page for the user in the language the user selected. Once a page is merged (static and dynamic info) it is saved. When the page is again requested, it can be served directly. When information is updated, the system searches all the language directories and deletes all existing pages that reference the updated information in all the supported languages where the page exists. This system insures that a new page is built the next time a request is made.

[0025]

When the status information is changed by the library and a new variable file is written to the hard drive, the merged HTML file is deleted and a new file will be built on the next request for the page. This process allows the library to write out information when it needs to. It does not require the web server to interrupt operation of the library with inquiries when a page is requested. Pages are only built when requested and only in the language requested. Even though many languages may be supported by the application, a given machine probably only uses one or two of the supported languages depending on its location. Building all of the language pages each time status changes would waste valuable processing time.

[0026]

The present invention has several advantages that include saving valuable machine time by not doing any more processing than necessary. In contrast, prior art systems dynamically build web pages in every supported human language every time the data changes regardless of whether the information had been requested by user. With the present invention, nothing happens when information changes unless someone requests to view the information. When a request is given, the page is dynamically built, but only in the human language requested. Thus, when information changes and no users are looking at it, no work is done, thereby allowing significant work savings.

[0027]

Although the present invention has been described in the context of a fully functional computer system, those skilled in the art will appreciate that the mechanisms of the present invention are capable of being distributed as a program product in a variety of forms, and that the present invention applies equally regardless of the particular type of signal-bearing media utilized to actually carry out the distribution. Examples of signal-bearing media include, but are not limited to, recordable-type media such as floppy disks or CD-ROMs and transmission-type media such as analogue or digital communications links.

[0028]

While the invention has been shown or described in only some of its forms, it should be apparent to those skilled in the art that it is not so limited, but is susceptible to various changes without departing from the scope of the invention.