Document structures for delta handling in server pages
Methods, systems and apparatus, including computer program products, for delta handling in server pages. A server method, for processing a page document that has multiple page components, includes generating, for each page component of the page document, a corresponding browser component. The method also includes building a document structure of a browser document corresponding to the page document. The document structure includes a page buffer and the generated browser components. The page buffer and the browser components have relationships that reflect the structure of the browser document. The method can identify a browser delta in the document structure and send the browser delta to an output stream.
Latest SAP Aktiengesellschaft Patents:
- Controlling user interfaces with contextual voice commands
- Method and system for classifying retail products and services using characteristic-based grouping structures
- Method and system for search structured data from a natural language search request
- Analytic application model and marketplace
- Determining the occurrence of events using decision trees
The present invention relates to client-server communication.
A JavaServer Pages™ (“JSP”) ”) page is a markup language page, typically an HTML (Hypertext Markup Language) web page, that contains additional bits of code that execute application logic to generate dynamic content. The application logic may involve various kinds of objects that can be accessed from a JSP page. For example, a JSP page may contain HTML code that displays static text and graphics, as well as a method call to an object that accesses a database; when the page is displayed in a user's browser, it will contain both the static HTML content and dynamic information retrieved from the database. Thus, a JSP page looks like an HTML (or XML) page—it contains text encapsulated by tags, which are defined between angle brackets (“< >”). While HTML tags are processed by a user's web browser to display the page, JSP tags are used by the web server to generate dynamic content.
A JSP page is an example of a dynamic web page, which in this specification will be referred to simply as a server page or a page. There are other technologies, similar to JSP, that can be used to create HTML or XML pages dynamically on a server. These include, by way of example, SAP Business Server Pages (BSP), Microsoft Active Server Pages (ASP), and AOLserver Dynamic Pages (ADP) technologies. In these technologies, functionality is embedded in structure in the form of special tags in a markup language document, and content and structure (presentation) are merged when the page is generated by a server. In alternative technologies for creating server pages, e.g., traditional servlet and CGI (Common Gateway Interface) script technologies, structure and presentation are embedded within functionality to create dynamic web pages.
In this specification, it is sometimes necessary to distinguish the page as it exists on the server from the page as it exists on the client. The term “page document” will be used to refer to the page that is processed by a server—e.g., a .jsp page. The term “browser document” will be used to refer to the page that is received and processed by a client and generally displayed to a human user—e.g., an HTML page generated by processing of a .jsp page by a JSP engine.
A server page can include information for a graphical user interface (“GUI”) to generate a browser document. The server can transmit the browser document to a client through a network. At the client, the browser document is rendered for display. This is typically done by a web browser, such as the Microsoft® Internet Explorer. When a user interacts with the client through the GUI to refresh the page, the entire process is repeated: the whole page, including layout information and data, is generated on the server and the resulting browser document is transmitted from the server to the client through the network. If the network has insufficient bandwidth, transmitting the whole page can cause undesired effects: until the refreshed page is finally presented, there can be a long waiting time or screen flicker.
Some browsers, such as the Microsoft Internet Explorer 6.0, include a feature for flicker-free rendering. When the client receives a modified page, the browser identifies modified components of the page and only replaces these components instead of the whole page, for example, by dynamic HTML injection into the page's Document Object Model (DOM). Dynamic HTML injection can reduce screen flicker for the user, but, because the whole page is transmitted through the network, insufficient network bandwidth can still cause undesirable waiting times.
SUMMARY OF THE INVENTIONThe present invention provides methods and apparatus, including computer program products, for defining and implementing a document structure for delta-handling of server pages.
In general, in one aspect, this invention provides methods and apparatus, including computer program products, for processing a page document on a server. The page document has multiple page components. For each page component of the page document, a corresponding browser component is generated. The server builds a document structure of a browser document corresponding to the page document. The document structure includes a page buffer and the generated browser components. The page buffer and the browser components have relationships that reflect the structure of the browser document.
Advantageous implementations of the invention can include one or more of the following features. The document structure can be sent to an output stream. The server can identify at least one browser delta in the document structure, and send the browser delta to an output stream. The page document can be a JSP, BSP, ADP, or ASP page. Each page component can be represented by a tag within the page document.
In general, in another aspect, this invention provides methods and apparatus, including computer program products, for using an output stream on a client. The client receives the output stream from a server. The output stream includes a document structure of a browser document corresponding to a page document on the server. The document structure includes a page buffer and multiple browser components. The page buffer and the browser components have relationships that reflect the structure of the browser document. From the output stream, the client builds a document object model of the browser document.
In general, in another aspect, this invention provides a data structure created as an output stream on a server for a client. The data structure includes a page buffer and multiple browser components. The page buffer is the root node of a document structure. The page buffer and the browser components have relationships that reflect the structure of a browser document represented by the data structure.
The invention can be implemented to realize one or more of the following advantages. The required bandwidth for network communication can be lower when compared to prior art systems where the whole browser document is exchanged between the server and client. When a minor portion of the browser document is modified, the browser delta transmission can require significant less bandwidth than the whole browser document transmission. The browser delta can be determined by comparing two versions of the browser document. The differences between the two versions can be detected at the level of browser components. The granularity of the browser delta can be defined by the granularity of the corresponding browser component. The server can send the browser delta in an output stream to a client. An output stream data structure can provide any degree of granularity for the browser delta. The client can receive the browser delta in an invisible first frame and update the corresponding browser document in a second frame. The client can swap the roles of the first and the second frames. Consequently, a user who interacts with the client can experiences a visually pleasing effect, because the update of the browser document with the browser delta results in a flicker-free change of the graphical user interface. This effect can be achieved by building a document object model (“DOM”) of the browser document by using an initial output stream and injecting into the DOM browser deltas that are received by the client through further output streams.
The details of one or more implementations of the invention are set forth in the accompanying drawings and the description below. Other features and advantages of the invention will become apparent from the description, the drawings, and the claims.
Like reference symbols in the various drawings indicate like elements.
DETAILED DESCRIPTIONDefinition of Terms
Client: A computer having a client relationship with a computer acting as a server.
Server: A computer having a server relationship with a computer acting as a client. A client and server are generally remote from each other and typically interact through a communication network, e.g., a local area network (“LAN”) or a wide area network (“WAN”), e.g., the Internet. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
Application data: Data relating to a computer program application (e.g., customer number, address, phone number, and so forth).
Layout data: Data defining placement of content of a graphical user interface.
Browser delta: A data structure that represents what is different between two different states of a browser document (e.g., before and after a user interaction).
Tag: A representation of a page component in a page. For example, in JSP pages, tags use XML notation and represent a Java class.
Output stream: Data structure used to collect the output of page components.
Document Object Model: The Document Object Model is a platform- and language-neutral interface that allows programs and scripts dynamically to access and update the content, structure and style of documents, and that provides a mechanism to access and manipulate parsed HTML and XML content.
A Document Structure for Delta-driven Refreshing of Pages
A system in accordance with the invention defines components of a server page. Each component can include content. Upon detecting that the content of one or more components have changed, the system identifies which of the other components have changed content as a result of the initial change. The system transmits the contents of components having changed content to a device, such as a client computer, that displays the contents.
To identify which of the other components have content that changed as a result of an initial change, the system defines and maintains a document structure that describes the relationship of the components, including describing the effect of an initial change in the content of a component on the contents of other components. The system identifies, based on the document structure, which of the components have changed content as a result of the initial change. Changes are also referred to as deltas.
EXAMPLESThe GUI 955 illustrated in
At time T1, the user is prompted with the form 955 having empty contact (955-1) and phone (955-2) components. Next, the user enters the name, e.g., SMITH, of the contact person into contact component 955-1, and, at a later time T2, uses submit component 955-3 to send a request to retrieve the contact person's phone number. At time T3, after the application retrieves the phone number of the contact person, e.g., 98765-4321, the phone number is displayed for the user in phone component 955-2.
The server memory stores a page document 151. The page document 151 includes information to generate the form 955. For example, the page document 151 can be a page, such as a JSP, BSP, or ASP page. The page document 151 includes page components 151-0, 151-1, 151-2, 151-3 that correspond to form components 955-0, 955-1, 955-2, 955-3 (
After translating the page document 151 into a browser document 150, typically done by the server, the browser document 150 is sent to the client. The browser document 150 can be a markup language document, for example, an HTML, XML, XHTML or WML document, which can be processed and rendered by a browser. The browser document 150 includes browser components 150-0, 150-1, 150-2, 150-3 that correspond to the page components 151-0, 151-1, 151-2, 151-3, respectively.
The client stores the browser document 150 in the client memory, and renders it at time T1 as form 955 on an output device. The browser document 150 can have dynamic data and static data. Dynamic data can be changed through user interaction. Examples of dynamic data include input fields, output fields, status indicators, and user defined layout elements. Static data are defined in an application and, in general, are not changed through user interaction. Examples of static data include application defined layout elements, headers, background colors, and background patterns. Examples for using dynamic and static data are given in
In the example implementation, as shown in
The server receives the request 989. In one implementation, the server accesses an application, e.g., an address database, retrieves the requested phone number from the application, and updates the corresponding page component 151-2 in page document 151 with the retrieved phone number (illustrated by dark fill color in
The server allocates (step 410) component buffers 921-0, 921-1, 921-2, 921-3 (illustrated by dashed frames in
The server writes (step 420) each browser component, i.e., 150-0, 150-1, 150-2, and 150-3, to its corresponding component buffer, i.e., 921-0, 921-1, 921-2, and 921-3. When the browser component of a component buffer changes, the server detects change and identifies the changed component buffer (step 430). The server detects the change by comparing current browser components to previous ones. In the example, a browser delta 150-2d that represents the change is stored in component buffer 921-2. Depending on other requested data changes in request 989, the other component buffers can store other browser deltas. For convenience, however, in the example, only the component buffer 921-2 includes a browser delta. The allocation (410), writing (420), and identifying (430) steps are explained in more detail with reference to
The server sends (step 440) change information, which in the implementation being described is the browser delta 150-2d, to the client. After being received (step 510) by the client, the browser delta 150-2d is stored in the client memory. With the browser delta 150-2d, the client updates (step 520) the corresponding browser component 150-2 (illustrated by dark fill color in
In one implementation, a page buffer 921-P is allocated (step 411) to the page document 151. The server builds (step 620;
As shown in
Optionally, the server can follow the hierarchy and copy the content of a component buffer to its parent node in the document structure 160. For example, as shown in
The server can copy the content of the component buffer 921-0 to its parent node, i.e., page buffer 921-P. Accordingly, as shown in
If a browser component of a child node, such as shown in
Using representations is advantageous in many cases, because a representation requires less memory than the content portion of a corresponding browser component. Furthermore, after replacing browser components with representations as described above, page buffer 921-P and component buffers 921-0, 921-2, 921-3 still include all information about the structure and content of the browser document 150 (see
Later, the server can generate a further version of the browser document 150. Generating the further version can be initiated, for example, by receiving a request 989 as described with reference to
As shown in
The following tables show examples of data structures for coding the example implementation shown in
Table 1 illustrates a portion of a tag source of GUI 955, i.e., <htmlb:page>. Frame component 955-0, i.e., <htmlb:form>, includes the phone component 955-2 as <htmlb:inputField id=“phone” . . . >.
To provide this tag source to the browser used by the client, the server generates an initial version of a browser document 150 as illustrated by such as the example shown in Table 2. Table 2 shows a content that is included in the output stream 921-OS in
In Table 2, the portion from <html> to </html> illustrates an HTML example of content of page buffer 921-P for the initial version. Referring to
In Table 2, a JavaScript portion starts at <script language=“JavaScript”> and ends at </script>. In the JavaScript portion, a JavaScript function
-
- dom_of_visible_item.doc(“htmlb_form—1”).outerHTML is a JavaScript implementation of the browser components 150-0. Similarly,
- dom_of_visible_item.doc(“phone”).outerHTML is a JavaScript implementation of browser components 150-2. In the initial version, the phone number value is empty ( . . . id=\“phone\” value=\“\” . . . ). When the server sends the initial version to the client, Table 2 is included in the output stream 921-OS (
FIG. 3D ).
Table 3 is an example JavaScript implementation of browser delta 150-2d stored in component buffer 921-2 (see, e.g.,
-
- dom_of_visible_item.doc(“phone”).outerHTML includes the retrieved phone number value (value=\“98765-4321\”) of browser component 150-2 (id=\“phone\”). Furthermore, the function
- dom_of_visible_item.doc(“phone”).outerHTML indicates to the client that, in the document object model corresponding to the browser document 150, the item (“phone”) has to be replaced with the output of the function.
As shown in
As shown in
The client then updates (step 520) the browser document 150 stored in the second frame F2. The second frame F2 is already displayed on an output device. To update the browser document 150, the client can use the browser document structure information of page buffer 921-P from the initial version. Using this information, the client can replace modified parts of browser component 150-2 with the corresponding browser delta 150-2d (illustrated by dark fill color in
As shown in
Optionally, the server method 400 is queried if it is executed the first time for the page document 151 (decision 425). If not (NO branch of decision 425), further steps include an identifying step (430) and a sending step (440). In the identifying step, the server identifies a browser delta 150-2d and a corresponding component buffer 921-2 that stores the browser delta. In the sending step, the browser delta 150-2d is sent from the server to the client. The browser delta 150-2d can be in a browser-compliant language selected from the group of HTML, XML, XHTML, WML, JavaScript and Visual Basic Script.
If the server method 400 is executed the first time (YES branch of decision 425) for the page document 151, further steps include a building step (421), a replacing step (422), and a sending step (423).
In the building step (421), the server builds a document structure 160. The server allocates page buffer 921-P to page document 151. The page buffer 921-P is the root node of the document structure 160 and is a parent node of at least one component buffer, e.g., 921-0 or 921-3. Each component buffer, e.g., 921-0, can be a parent node of further component buffers, e.g., 921-1 or 921-2.
In the replacing step (422), the server replaces browser components with representations. For example, child nodes 921-0, 921-2, 921-3 include browser components 150-0, 150-2, 150-3, respectively. These child nodes have parent nodes, e.g., 921-P or 921-0, in the document structure 160. In the parent nodes, the server can replace the browser components 150-0, 150-2, or 150-3 with a representation, e.g., <span . . . ></span>.
In the sending step (423), the server sends the page buffer 921-P and each component buffer, i.e., 921-0, 921-1, 921-2, and 921-3, of the document structure 160 to the client.
In a page document 151, a page component, e.g., 151-0, 151-1, 151-2, or 151-3, can be represented by a tag within the page document 151. Furthermore, each component buffer, e.g., 921-0, 921-1, 921-2, and 921-3, can be stored in a memory stack of the server memory. Optionally, component buffers can be stored in another memory of a computer system.
In the receiving step (510), the client receives a browser delta 150-2d from the server. The browser delta 150-2d refers to a specific browser component 150-2. The server identifies the browser delta 150-2d through a component buffer 921-2 allocated to the corresponding page component 151-2.
In the updating step (520), the client updates the browser document 150 with the browser delta 151-2d. To update the browser document 150, the client can inject the browser delta 151-2d into a document object model of the browser document 150. The document object model is stored in the client memory.
In an implementation using multiple frames as described earlier, the client receives the browser delta 151-2d in a first frame F1 of the client memory. The browser document 150 is updated (step 520) with the browser delta 151-2d in a second frame F2 of the client memory. The first frame F1 can be invisible.
In an alternative implementation, the client method 500 includes the following steps: receiving (step 530) a new browser document 150′ in the first frame F1; reducing (step 540) the size of the second frame F2; and expanding (step 550) the size of the first frame F1. After reduction, the second frame F2 can be invisible.
Optionally, the server method 600 is queried if it is executed the first time (decision 625). If yes (YES branch of decision 625), the server can send (step 630) the document structure 160 to the output stream 921-OS. If the server method 600 is executed at least a second time for page document 151 (NO branch of decision 625), the server can identify (step 640) a browser delta 150-2d in the document structure 160, and send (step 650) the browser delta 150-2d to the output stream 921-OS. The output stream 921-OS does not have redundant information about the browser components, but still has all the information about the structure and content of the browser document 150.
The client (step 720) a DOM 150 of the browser document 150 from the output stream 921-OS. The browser document 150 includes the browser components 150-0, 150-2, and 150-3, of the document structure 160. To build the document object model DOM 150, the client parses the browser document 150 included in the output stream 921-OS with a browser, and loads the parsed result into the client memory.
The invention can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Apparatus of the invention can be implemented in a computer program product tangibly embodied in an information carrier, e.g., in a machine-readable storage device or in a propagated signal, for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output. The invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. A computer program is a set of instructions that can be used, directly or indirectly, in a computer to perform a certain activity or bring about a certain result. A computer program can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
Suitable processors for the execution of a program of instructions include, by way of example, both general and special purpose microprocessors, and the sole processor or one of multiple processors of any kind of computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions and one or more memories for storing instructions and data. Generally, a computer will also include, or be operatively coupled to communicate with, one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).
To provide for interaction with a user, the invention can be implemented on a computer having a display device such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor for displaying information to the user and a keyboard and a pointing device such as a mouse or a trackball by which the user can provide input to the computer.
The invention can be implemented in a computer system that includes a back-end component, such as a data server, or that includes a middleware component, such as an application server or an Internet server, or that includes a front-end component, such as a client computer having a graphical user interface or an Internet browser, or any combination of them. The components of the system can be connected by any form or medium of digital data communication.
The invention has been described in terms of particular embodiments. Other embodiments are within the scope of the following claims. For example, steps of the invention can be performed in a different order and still achieve desirable results.
Claims
1. A server method for processing a page document that comprises a plurality of page components, the method comprising:
- generating a browser document from the page document, wherein generating the browser document from the page document includes: generating for each page component of the page document a corresponding browser component, each browser component being in a browser compliant syntax; and building a document structure of the browser document from the page document, wherein the browser document corresponds to the page document, the document structure comprises a page buffer content and the generated browser components, the page buffer content being in a browser compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document;
- sending the browser document to a client;
- identifying at least one browser delta in the document structure including retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax;
- sending the at least one browser delta to an output stream; and
- sending the output stream to an invisible first frame in response to a client request for a response directed to the first frame, wherein the client injects the browser delta into a document object model of the browser document displayed in a second visible frame.
2. The server method of claim 1, wherein the page document is a JSP, BSP, ADP, or ASP page.
3. The server method of claim 1, wherein each page component is represented by a tag within the page document.
4. The server method of claim 1, wherein:
- the page buffer content includes a copy of each of the browser components.
5. The server method of claim 1, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
6. A client method for using an output stream received from a server, the method comprising:
- receiving the output stream from the server, wherein: the output stream comprises a document structure of a browser document, the browser document corresponds to a page document on the server and the document structure of the browser document is generated from the page document, the document structure comprises a page buffer content and a plurality of browser components, each browser component being in a browser compliant syntax, the page buffer content being in a browser compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document;
- building from the output stream a document object model of the browser document;
- requesting a server response from the server, the server response including a browser delta and being directed to a first invisible frame, where the browser delta is identified at the server by retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax;
- receiving a browser delta from the server in the first invisible frame; and
- updating the document object model by injecting the browser delta into the document object model of the browser document displayed in a second visible frame.
7. The client method of claim 6, wherein:
- the page buffer content includes a copy of each of the browser components.
8. The client method of claim 6, wherein:
- one or more of the browser components is a child node in the document structure and the page buffer content includes a representation of each of the child node browser components.
9. A computer program product, tangibly embodied in a machine-readable storage device, for processing a page document that comprises a plurality of page components, the product comprising instructions operable to cause a server computer to:
- generate a browser document from the page document, wherein to generate the browser document from the page document includes to: generate for each page component a corresponding browser component, each browser component being in a browser compliant syntax; and build a document structure of the browser document from the page document, wherein the browser document corresponds to the page document, the document structure comprises a page buffer content and the generated browser components, the page buffer content being in a browser-compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document;
- send the browser document to a client;
- identify at least one browser delta in the document structure including: retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax;
- send the at least one browser delta to an output stream; and
- send the output stream to an invisible first frame in response to a client request for a response directed to the first frame, wherein the client injects the browser delta into a document object model of the browser document displayed in a second visible frame.
10. The computer program product of claim 9, wherein:
- the page buffer content includes a copy of each of the browser components.
11. The computer program product of claim 9, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
12. A computer program product, tangibly embodied in a machine-readable storage device, for using an output stream received from a server, the product comprising instructions operable to cause a client computer to:
- receive the output stream from the server, wherein the output stream comprises a document structure of a browser document, the browser document corresponds to a page document on the server and the document structure of the browser document is generated from the page document, the document structure comprises a page buffer content and a plurality of browser components, each browser component being in a browser-compliant syntax, the page buffer content being in a browser-compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document;
- build from the output stream a document object model of the browser document;
- request a server response from the server, the server response including a browser delta, and being directed to a first invisible frame, where the browser delta is identified at the server by retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax;
- receive a browser delta from the server in the first invisible frame; and
- update the document object model by injecting the browser delta into the document object model of the browser document displayed in a second visible frame.
13. The computer program product of claim 12, wherein:
- the page buffer content includes a copy of each of the browser components.
14. The computer program product of claim 12, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
15. An output created on a server for a client, comprising:
- a first data structure created as an output stream on the server for the client, the first data stream comprising a page buffer content and a plurality of browser components, wherein the page buffer content is the root node of a document structure, each browser component is in a browser-compliant syntax, the page buffer content is in a browser-compliant syntax, the page buffer content corresponds to content of a page document, and the page buffer and the browser components have relationships that reflect the structure of a browser document represented by the data structure, the document structure being generated from the page document on the server;
- a second data structure created as an output stream on the server for the client, the second data structure comprising a browser delta the browser delta being identified by retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax.
16. The data structure of claim 15, wherein:
- the page buffer content includes a copy of each of the browser components.
17. The data structure of claim 13, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
18. A server for providing an output stream to enable delta-handling in server pages, the server comprising:
- a memory for storing a page document that comprises a plurality of page components; and
- a processor coupled to a program storage device storing instructions operable to cause the processor to:
- generate a browser document from the page document, wherein to generate the browser document from the page document includes to: generate for each page component a corresponding browser component, each browser component being in a browser-compliant syntax, and build a document structure of the browser document from the page document, wherein: the browser document corresponds to the page document, the document structure comprises a page buffer content and each generated browser component, the page buffer content being in a browser-compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document;
- send the browser document to a client;
- identify at least one browser delta in the document structure including: retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax;
- send the at least one browser delta to the output stream; and
- send the output stream to an invisible first frame in response to a client request for a response directed to the first frame,
- wherein the client injects the browser delta into a Document Object Model (DOM) of the browser document displayed in a second visible frame.
19. The server of claim 18, wherein:
- the page buffer content includes a copy of each of the browser components.
20. The server of claim 18, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
21. A client for using an output stream from a server, the client comprising:
- a memory configured to receive the output stream from the server, wherein the output stream comprises a document structure of a browser document, the browser document corresponds to a page document on the server and the document structure of the browser document is generated from the page document, the document structure comprises a page buffer content and a plurality of browser components, each browser component being in a browser-compliant syntax, the page buffer content being in a browser-compliant syntax, the page buffer content corresponding to content of the page document, and the page buffer content and the browser components have relationships that reflect the structure of the browser document; and
- a processor coupled to a program storage device storing instructions operable to cause the processor to build from the output stream a document object model of the browser document, request a server response from the server directed to a first invisible frame, the server response including a browser delta, where the browser delta is identified at the server by retrieving information relating to a first component of the browser document in the browser compliant syntax, retrieving a second component in the browser compliant syntax, and comparing the first component with the second component to identify at least one browser delta in the document, the browser delta being in the browser compliant syntax, receive a browser delta from the server in the first invisible frame, and update the document object model by injecting the browser delta into the document object model of the browser document displayed in a second visible frame.
22. The client of claim 21, wherein:
- the page buffer content includes a copy of each of the browser components.
23. The client of claim 21, wherein:
- one or more of the browser components is a child node in the document structure; and the page buffer content includes a representation of each of the child node browser components.
5701451 | December 23, 1997 | Rogers |
5706507 | January 6, 1998 | Schloss |
5835712 | November 10, 1998 | DuFresne |
5946697 | August 31, 1999 | Shen |
5963952 | October 5, 1999 | Smith |
5983227 | November 9, 1999 | Nazem et al. |
6003087 | December 14, 1999 | Housel et al. |
6006260 | December 21, 1999 | Barrick et al. |
6031989 | February 29, 2000 | Cordell |
6073173 | June 6, 2000 | Bittinger et al. |
6112242 | August 29, 2000 | Jois et al. |
6122657 | September 19, 2000 | Hoffmann et al. |
6128655 | October 3, 2000 | Fields et al. |
6161107 | December 12, 2000 | Stern |
6167395 | December 26, 2000 | Beck et al. |
6209029 | March 27, 2001 | Epstein et al. |
6239797 | May 29, 2001 | Hills et al. |
6249291 | June 19, 2001 | Popp et al. |
6253228 | June 26, 2001 | Ferris et al. |
6266681 | July 24, 2001 | Guthrie |
6311187 | October 30, 2001 | Jeyaraman |
6377957 | April 23, 2002 | Jeyaraman |
6389592 | May 14, 2002 | Ayres et al. |
6397387 | May 28, 2002 | Rosin et al. |
6429880 | August 6, 2002 | Marcos et al. |
6480865 | November 12, 2002 | Lee et al. |
6605120 | August 12, 2003 | Fields et al. |
6622168 | September 16, 2003 | Datta |
6694336 | February 17, 2004 | Multer et al. |
6766351 | July 20, 2004 | Datta |
6807606 | October 19, 2004 | Copeland et al. |
7007237 | February 28, 2006 | Sharpe |
7051084 | May 23, 2006 | Hayton et al. |
7139976 | November 21, 2006 | Kausik et al. |
20020004813 | January 10, 2002 | Agrawal et al. |
20020046240 | April 18, 2002 | Graham et al. |
20020091736 | July 11, 2002 | Wall |
20020107892 | August 8, 2002 | Chittu et al. |
20020147849 | October 10, 2002 | Wong |
20020156812 | October 24, 2002 | Krasnoiarov et al. |
20020156815 | October 24, 2002 | Davia |
20020188696 | December 12, 2002 | Ullmann et al. |
20030018612 | January 23, 2003 | Melbin |
20030125966 | July 3, 2003 | Viswanath et al. |
20030149749 | August 7, 2003 | Carlucci et al. |
20030188016 | October 2, 2003 | Agarwalla et al. |
20030212987 | November 13, 2003 | Demuth |
20030217331 | November 20, 2003 | McKellar et al. |
20030225826 | December 4, 2003 | McKellar et al. |
20040205558 | October 14, 2004 | Holloway et al. |
20050099963 | May 12, 2005 | Multer et al. |
1016987 | July 2000 | EP |
- Williams, “HTTP: Delta-Encoding Notes”, Published Jan. 17, 1997, Computer Science Department□□Virginia Polytechnic and State University Blacksburg, 10 pages URL: http://ei.cs.vt.edu/˜williams/DIFF/prelim.html.
- Williams, S.; “HTTP: Delta-Encoding Notes”; Internet; Jan. 17, 1997; 7 pp.
- Douglis, Fred et al.; HPP: HTML Macro-Preprocessing To Support Dynamic Document Caching; Proceedings of the Usenix Symposium On Internet Technologies and Systems; Dec. 8, 1997; pp. 83-94.
- Housel, C., et al.; “WebExpress: A System For Optimizing Web Browsing In a Wireless Environment”; Proceedings Of The Annual International Conference On Mobile Computing and Networking; Nov. 11, 1996; pp. 108-116.
- Edwards, Peter; “DIY Intranets With CFML/XML/HTML/CGI/ASP/JSP”; Vine; No. 119; 2000; pp. 53-60.
- Chang, George et al.; “A Graphical Environment for Change Detection in Structured Documents”; IEEE Computer Soc.; Aug. 13, 1997; pp. 536-541.
- Floyd, Rick et al.; “Mobile Web Access Using eNetwork Web Express”; IEEE Personal Communications; vol. 5, No. 5; Oct. 1, 1998; pp. 47-52.
- Seshadri, Govind, “Advanced Form Processing Using JSP”; JavaWorld, Mar. 2000, pp. 1-20, (downloaded from: http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-fors—p.html).
- Mahmoud, Qusay H., “Web Application Development with JSP and XML, Part I: Fast Track JSP”, TheServerSide.COM, May 2001, pp. 1-10 (downloaded from: http://www.theserverside.com/articles/article.tss?I=JSP-XML).
- Mahmoud, Qusay H., “Web Application Development with JSP and XML. Part III: Developing Custom JSP Tags”, TheServerSide.COM, Aug. 2001, pp. 1-22 (downloaded from: http://www.theserverside.com/articles/article.tss?I=JSPXML3).
- McPherson, Scott, “Java server Pages: A developer's Perspective”, developers.sun.com, Aug. 2001, pp. 1-5 (downloaded from: http://www.sun.com/developer/technicalArticles/Programming/jsp/index.html).
- Kristmundsson, Thor, et al., “Strut Your Stuff With JSP Tags: Use and Extend the Open Source Struts JSP Tag Library”, developers.sun.com, Aug. 2001, pp. 1-7 (downloaded from http://www.sun.com/developer/technicalArticles/javaserverpags/strust—jsp/).
- Weissinger, A. Keyton, ASP in a Nutshell, 2nd Edition, O'Reilly & Associates, Sebastopol, CA Jul. 2000, pp. 3-22.
- Hall, Marty, et al., Core Web Programming, 2nd Edition, Sun Microsystems Press (Prentice Hall), Palo Alto, CA, © 2001, pp. 792-793, 965-968, 971-977 and 1015-1026.
- Hougland, Damon, et al., Core JSP, Prentice Hall PTR, Upper Saddle River, NJ, © 2001, pp. 1-11, 54-56, 60-61, 78-87 and 131-143.
- Microsoft Dictionary, 5th Edition, Microsoft Press, Redmond, WA, © 2002, pp. 293-294.
- Wills, Craig E., et al., “N for the Price of 1: Bundling Web Objects for More Efficient Content Delivery”, WWW 10, May 1-5, 2001, Hong Kong, pp. 257-264.
- Housel, Barron C., et al., “WEBExpress: A Client/Intercept Based System for Optimizing Web Browsing in a Wireless Environment,” Mobile Networks and Applications, vol. 3, Baltzer Science Publishers BV, © 1998, pp. 419-431.
- Feinstein, Wei Pan, et al., “A Study of Technologies for Client/Server Applications,” Proceedings of the 38th Annual ACM Southeast Regional Conference, Apr. 2000, Hong Kong, pp. 184-193
- Bai, Jing et al., “Design and Development of an Interactive Medical Teleconsultation System Over the World Wide Web”, IEEE Transactions on Information Technology in Biomedicine, vol. 2, No. 2 (Jun. 1998), pp. 74-79.
- Dickens, Phillip M. et al., “An Evaluation of Java's I/O Capabilities for High-Performance Computing”, Proceedings of the ACM 2000 Conference on Java Grande, San Francisco, CA (2000), pp. 26-35.
- Kemper, Alfons et al., “Hyperqueries: Dynamic Distributed Query Processing on the Internet”, Proceedings of the 27th VLDB Conference, Roma, Italy, Sep. 11-14, 2001, pp. 1-10.
- Mogul, Jeffrey C., “Squeezing More Bits Out of HTTP Caches”, IEEE Network, vol. 14, Iss. 3 (May/Jun. 2000), pp. 6-14.
Type: Grant
Filed: May 31, 2002
Date of Patent: Oct 7, 2008
Patent Publication Number: 20030226106
Assignee: SAP Aktiengesellschaft (Walldorf)
Inventors: Brian McKellar (Heidelberg), Bjorn Goerke (Muhlhausen)
Primary Examiner: Doug Hutton
Assistant Examiner: Quoc A. Tran
Attorney: Fish & Richardson P.C.
Application Number: 10/159,819
International Classification: G06F 15/00 (20060101);