WO2002063504A2 - Methods and apparatus for augmenting page generation code to effect partial page regeneration - Google Patents

Methods and apparatus for augmenting page generation code to effect partial page regeneration Download PDF

Info

Publication number
WO2002063504A2
WO2002063504A2 PCT/US2001/045272 US0145272W WO02063504A2 WO 2002063504 A2 WO2002063504 A2 WO 2002063504A2 US 0145272 W US0145272 W US 0145272W WO 02063504 A2 WO02063504 A2 WO 02063504A2
Authority
WO
WIPO (PCT)
Prior art keywords
page
code
client
server
regenerator
Prior art date
Application number
PCT/US2001/045272
Other languages
French (fr)
Other versions
WO2002063504A3 (en
Inventor
Richard Hayton
David Halls
Original Assignee
Citrix Systems, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US09/704,896 external-priority patent/US7346842B1/en
Priority claimed from US09/704,904 external-priority patent/US7051084B1/en
Application filed by Citrix Systems, Inc. filed Critical Citrix Systems, Inc.
Priority to GB0309650A priority Critical patent/GB2384346A/en
Priority to JP2002563379A priority patent/JP2004519040A/en
Publication of WO2002063504A2 publication Critical patent/WO2002063504A2/en
Publication of WO2002063504A3 publication Critical patent/WO2002063504A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present invention relates generally to apparatus and methods for updating a page sent to a client for display. More specifically, the invention relates to an apparatus and method for regenerating and retransmitting changed portions of the page sent to a client.
  • Computer communication networks typically include one or more nodes called servers and one or more nodes termed clients.
  • a server provides a service to a client upon receiving a request from the client.
  • FIG. 1 illustrates an example of a service that a network 10 may provide.
  • the client 14 communicates with the server 22 using a communication channel 20.
  • the server 22 executes (arrow 34) all of the page generation code 30 to generate a complete web page 26 and transmits (arrow 38) the web page 26 for display on (arrow 42) the client 14.
  • the generated page 26 represents a snapshot of the state of the server-side data 50 at the point in which the page generation code 30 was executed (arrow 34).
  • the page generation code 30 generates the page 26 so as to include a list of share prices for certain stocks.
  • the server 22 retrieves (arrow 46) the data 50 (i.e., share price) that was stored in the server storage buffer 54 or received (arrow 58) by the server 22 at the point of time in which the program was executed (arrow 34), or sometime before then.
  • the server transmits (arrow 38) and the client displays (arrow 42) the entire generated page 26.
  • the page 26 remains displayed on the client 14 until the client 14 requests (arrow 18) a refresh of the page 26 (i.e., another transmission of the page 26 with a snapshot of the state of the server- side data 50 at the time of the refresh request).
  • the server 22 re-executes (arrow 34) the page generation code 30 and transmits the new generated page 26 to (arrow 38) the client 14.
  • Some systems may have a periodic update, where the client requests (arrow 18) a refresh of the page 26 every specified period of time.
  • the server 22 Upon re-executing (arrow 34) all of the page generation code 30, the server 22 generates another complete page 26.
  • the page 26 represents a snapshot of the state of the server-side data 50 at the point in which the server 22 re-executes (arrow 34) all of the page generation code 30.
  • the data 50 e.g., share price
  • the majority of the page 26 will be static elements, which are unchanged
  • Neither the manual nor periodic update keeps the user timely informed of data 50 as the data 50 changes.
  • the updates are almost unrelated to the changes in the data 50; for example, a page 26 can be transmitted although no data has changed. This update unnecessarily uses network communication channel resources, client resources and server resources.
  • the invention relates to a method and apparatus for regenerating portions of the page that have changed and transmitting only those portions to the client for display. Executing only the necessary parts of the page generation code and transmitting only changes to the client improves the efficiency of using the resources of the network communication channel, the client node and the server node. Performing these operations only when required, when the data has changed, improves the efficiency of use even further.
  • the invention also takes advantage of any portions of the page that are already on the client by reusing them and thus eliminates the need to regenerate or transmit those reusable portions.
  • the invention relates to a method for augmenting page generation code for partial page regeneration.
  • the method includes receiving page generation code that generates a page and identifying one or more fragments in the page generation code, where each fragment generating a corresponding portion of the page when the fragment is executed.
  • the method further includes providing additional code to operate with the page generation code to control execution of each fragment for partial page regeneration.
  • the step of identification includes comparing a process of the page generation code to at least one predetermined criterion to determine whether the process qualifies as a fragment.
  • the predetermined criterion requires that the process of the page generation code does not modify a global variable.
  • the predetermined criterion requires that the process of the page generation code does not modify data on which another fragment relies. In another embodiment, the predetermined criterion requires that the process of the page generation code have a predetermined process signature. In another embodiment, the predetermined method signature requires that the return type in the process is a string. In another embodiment, the provided additional code includes additional processes uniquely associated with an overall class that represents the page generation code. In another embodiment, the provided additional code includes additional processes uniquely associated with each identified fragment to intercept calls to the identified fragment. In another embodiment, the provided additional code includes additional processes uniquely associated with a process that retrieves data on which the identified fragment relies. In another embodiment, the process that retrieves data on which an identified fragment relies is a JAVA bean.
  • the invention in another aspect, relates to a server for augmenting page generation code for partial page regeneration.
  • the server includes a partial page regenerator in communication with an external page code source for receiving page generation code that generates a page.
  • the partial page regenerator identifies one or more fragments in the page generation code, each fragment generating a corresponding portion of the page when executed, and provides additional code to operate with the page generation code to control execution of each fragment for partial page regeneration.
  • the partial page regenerator compares a process of a page generation code to at least one predetermined criterion to determine whether the process is a fragment.
  • the predetermined criterion requires that the process of the page generation code does not modify a global variable.
  • the predetermined criterion requires that the process of the page generation code does not modify data on which another fragment relies.
  • the predetermined criterion requires that the process of the page generation code have a predetermined process signature.
  • the predetermined method signature is of a return type in a process that is a string.
  • the partial page regenerator provides additional code that includes additional processes uniquely associated with an overall class that represents the page generation code. In another embodiment, the partial page regenerator provides additional code that includes additional processes uniquely associated with each identified fragment to intercept calls to the identified fragment. In another embodiment, the partial page regenerator provides additional code that includes additional processes uniquely associated with a process that retrieves data on which the identified fragment relies. In another embodiment, the process that retrieves data on which the identified fragment relies is a JAVA bean.
  • FIG. 1 is a diagram of a client/server network as known in the prior art.
  • FIG. 2a is a diagram of an exemplary client/server network embodying the principle of the invention.
  • FIG. 2b is a block diagram of an embodiment of the invention illustrating a correspondence between fragments of page generation code and portions of the generated page and a correspondence between the fragments of page generation code and data stored in a storage device.
  • FIG. 3a is a block diagram of fragments of servlet page generation code.
  • FIG. 3b is a block diagram of fragments of the servlet page generation code augmented with additional code to control execution of individual fragments according to the invention.
  • FIG. 4a is a block diagram of fragments of CGI page generation code.
  • FIG. 4b is a block diagram of fragments of CGI page generation code augmented with additional code to control execution of individual fragments according to the invention.
  • FIG. 4c is a block diagram of a method of wrapping using two proxies.
  • FIG. 5 a is a block diagram of the execution sequence of augmented fragments of servlet page generation code according to the invention.
  • FIG. 5b is an exemplary output of HTML code for a generated page and the associated modification list, with identification tags identifying portions of the page according to the invention.
  • FIG. 6 is a block diagram of a page description model and correspondences between fragments of page generation code and portions of the generated page according to the invention.
  • FIG. 7 is a block diagram of an example of the generic data structure for a map of correspondences between fragments, data, and page portions according to the invention.
  • FIG. 8 is a block diagram of an example of a map of correspondences between fragments, data, and page portions according to the invention.
  • FIG. 9 is a flow diagram of an example of generating a modification list when data changes according to the invention.
  • FIG. 10 is a flow diagram of an example of incorporating updates using the modification list according to the invention.
  • FIGS. 11a, l ib, l ie and 1 Id are block diagrams of an example of a process for inserting of a new page portion into a currently displayed page according to the invention.
  • FIG. 12 is a screenshot of an example of incorporating updates into an email page according to the invention.
  • FIG. 2a illustrates an exemplary embodiment of a partial page regeneration system 200 that includes a first computing system (“client node”) 205 in communication with a second computing system (“server node”) 210 over a network 215.
  • the network 215 can be a local -area network (LAN), such as a company Intranet or a wide area network (WAN) such as the Internet or the World Wide Web.
  • LAN local -area network
  • WAN wide area network
  • a user of the client node 205 can be connected to the network 215 through a variety of connections including standard telephone lines, LAN or WAN links (e.g., TI, T3, 56kb, X.25), broadband connections (ISDN, Frame Relay, ATM), and wireless connections.
  • the client node 205 includes a client transceiver 230 to establish communication with the network 215.
  • the server node 210 includes a server transceiver 235 to establish communication with the network 215.
  • the connections can be established using a variety of communication protocols (e.g., HTTP TCP/IP, IPX, SPX, NetBIOS, Ethernet, RS232, and direct asynchronous connections).
  • the client node 205 can be any computing device (e.g., a personal computer, set top box, phone, handheld device, kiosk, etc) used to provide a user interface (e.g., web browser) to an application or web page, or to otherwise present data stored or accessed via the server node 210.
  • the client node 205 includes a display 220, a storage buffer 225, the client transceiver 230 and a display alterer 245.
  • the display alterer 245 is in communication with the client transceiver 230 for transmitting requests to the server node 210 for an update of a web page 240.
  • the display alterer 245 also receives the web page 240 or portions of the web page 240 sent from the server node 210 through the client transceiver 230.
  • the display alterer 245 is in communication with the display 220 for displaying the web page 240 or for incorporating received updated portions of the web page 240 into the currently displayed web page 240.
  • the display alterer 245 is in communication with the storage buffer 225 for temporarily storing web page data needed for the incorporation of the received updated portions of the web page 240.
  • the storage buffer 225 can include persistent and/or volatile storage.
  • the server nodes 210 and 210' can be any computing device capable of providing the requested services of the client node 205, particularly generating and transmitting portions of the transmitted web page 240. It is to be understood that more or fewer servers than those shown in Fig. 2a can be connected to the network 215. In one embodiment, the server nodes 210 and 210' are two separate computing devices. In another embodiment, the server nodes 210 and 210' are a single computing device. Either implementation is equivalent for practicing the principles of the invention, and thus the reference to a server node 210 hereafter represents either configuration or another equivalent configuration.
  • the server node 210 includes the server transceiver 235, a partial page regenerator 250, page generation code 30, a storage buffer 54 and a data change monitor 255.
  • the server node 210 can receive the page generation code 30 from any source.
  • the page generation code 30 can be on another physical device that is in communication with the physical device (e.g., server node 210) on which the partial page regenerator 250 resides.
  • the source can be a programmer who creates the page generation code 30 and stores the code 30 on the server node 210 to accommodate requests from the client node 205.
  • the page generation code 30 can be written in any language and in any format that the server node 210 uses to generate a web page 240. Examples of format for the page generation code 30 include a servlet, a JAVA Server Page ("JSP"), an Active Server Page (“ASP”), a template language, and/or a Common Gateway Interface (“CGI”) script.
  • JSP JAVA Server Page
  • ASP Active Server Page
  • CGI Common Gateway Interface
  • the server node 210 During operation of the page regeneration system 200, the server node 210 generates and transmits to the client node 205 only those portions of a currently displayed web page 240 that have changed since the web page 240 (or portions of the web page 240) were last transmitted to the client node 205.
  • the client node 205 incorporates those page portions into the currently displayed page 240.
  • the web page 240 includes a plurality of page portions
  • the page generation code 30 includes a plurality of code fragments 265a, 265b, 265c, 265d (generally referred to as 265).
  • FIG. 2b illustrates an example of the correspondences between page portions 260a, 260b, 260c, 260d 260e, 260f of the web page 240 and the code fragments 265a, 265b, 265c, 265d of the page generation code 30 that generate the corresponding page portions 260.
  • Each code fragment 265 generates one or more page portions 260.
  • code fragment 265d generates page portions 260c, 260e and 260f.
  • FIG. 2b also illustrates an example of the correspondences between code fragments 265 of the page generation code 30 and the corresponding data 50a, 50b, 50c, 50d (generally referred to as 50) upon which the code fragments 265 depend.
  • the data 50 upon which the code fragments 265 depend is the data 50 that the code fragment 265 uses to generate the corresponding page portion 260.
  • the embodiment shown has one data element (e.g., 50a) for one fragment (e.g., 265a), this relationship can vary. For example, one code fragment may depend on several data elements, and one data element may be have many code fragments dependent on it.
  • the partial page regenerator 250 is in communication with the server transceiver 235 for receiving requests from the client node 205 to refresh the web page 240.
  • the partial page regenerator 250 transmits the web page 240, or portions 260 of the web page 240, to the server transceiver 235 in response to such requests, for transmission to the client node 205.
  • the partial page regenerator 250 is in communication with the page generation code 30 for executing code fragments 265 of the page generation code 30 to create corresponding page portions 260 of the web page 240.
  • the partial page regenerator 250 also determines the data 50 in the storage buffer 54 that the code fragments 265 use to generate the corresponding page portions 260.
  • the partial page regenerator 250 is in communication with the data change monitor 255 to receive notice of any change in the data 50 in the storage buffer 54 upon which the code fragments 265 depend.
  • the partial page regenerator 250 identifies code fragments 265 in the page generation code 30.
  • the partial page regenerator 250 identifies processes (e.g., methods in an object-oriented language, subroutines, functions) that meet one or more criteria.
  • the criterion is that the code fragment 265 (e.g., process) is idempotent, or provides indempotentcy. That is, the code fragment 265 produces identical results every time that code fragment 265 is called with the same arguments and the same dependent data 50. In other words, when the code fragment 265 is executed there are no side effects that change the results of calls to other code fragments (e.g., no updating of global counters) or that change dependent data 50.
  • the idempotent property allows the partial page regenerator 250 to substitute a previously cached output generated by the code fragment for another page portion generated by the same code fragment, rather than calling that code fragment again.
  • code fragment 265d generates page portion 260c.
  • page portions 260e and 260f can be generated simply be copying the portion 260c because the property of the fragment 265d is such that the fragment 265d will produces the same output each time it is called with the same arguments.
  • the partial page regenerator 250 determines that a process (e.g., method in an object-oriented language, subroutine, function) in the page generation code 30 meets this criterion by verifying, for example, that the process does not contain any global variables that the process changes. If the process meets the criterion, the partial page regenerator 250 identifies the process as a code fragment 265 in a map of correspondences 300 (FIG. 7) that the partial page regenerator 250 generates.
  • a process e.g., method in an object-oriented language, subroutine, function
  • another embodiment uses the criterion that a process (e.g., method in an object-oriented language, subroutine, function) generates output (e.g., HTML code) that defines one or more page portions 260 of the web page 240.
  • the partial page regenerator 250 determines that a process meets this criterion by verifying, for example, that the process includes a certain return type (e.g., returns String).
  • the partial page regenerator 250 verifies the process follows a certain predefined naming convention (e.g., called fragment_x), and/or a certain predefined annotation to the process (e.g., #def ⁇ ne foo_is_a_fragment).
  • JSP JSP for example, embedded tags may exist that match pieces of the code 30 to portions of the page 240 that the pieces generate.
  • the tags can be used as identifying code fragments 265.
  • the partial page regenerator 250 verifies the process includes other certain additional attributes, such as being included in a list of process names provided to the partial page regenerator 250 at runtime (i.e., when the page generation code 30 is executed).
  • the partial page regenerator 250 examines the page generation code 30 using a standard JAVA technique 'introspection'.
  • An advantage is that the partial page regenerator 250 does not need to decompile or have source access to the page generation code 30. This allows the partial page regenerator 250 to work with any page generation code 30, regardless of restrictions (e.g., physical or license restrictions) to source access of the page generation code 30.
  • the partial page regenerator 250 After identifying the code fragments 265, the partial page regenerator 250 needs the ability to execute the code fragments 265 individually from and independently of other parts of the page generation code 30. Because the page generation code 30 is written to be executed in its entirety, the partial page regenerator 260 must create additional code, relating to the page generation code 30, to selectively control execution of the code fragments. To do this, the partial page regenerator 250 augments the page generation code 30 to enable individual and independent execution of each of the code fragments 265.
  • the additional code takes the same name as the code fragment 265 that the additional code is augmenting. By taking the same name, the additional code is called and executed instead of the code fragment 265 of the partial page generation code 30.
  • the additional code controls whether the code fragment 265 of the page generation code 30 with the same name is subsequently called and executed. This control allows the selective execution of the code fragments 265 of the page generation code 30.
  • FIG. 3a shows an embodiment of page generation code 30' having a servlet format and a plurality of code fragments 265a', 265b', 265c'.
  • the code fragment 265a' identified as 'main' represents all of the header information and the static information of the web page 240.
  • the code fragment 265b' identified as 'do table' represents the part (e.g., process, method) of the page generation code 30' that creates a table on the Web page 240.
  • the code fragment 265c' identified as 'do Share' represents the process that creates an individual element of the table.
  • FIG. 3b illustrates the addition of code 270b, 270c (generally 270), sometimes referred to as code wrapping, to create wrapped code fragments 268b', 268c', respectively.
  • the wrapped code fragments 268b', 268c' are shown with the code fragments 265b', 265c' enclosed within the wrapped code fragments 268b', 268c'.
  • the code wrapping 270b', 270c' as shown in FIG. 3b represents a logical connection only.
  • the additional code 270b', 270c' is not located in the page generation code 30', but in a different area on the server node 210.
  • only the code fragments 265b', 265c' are physically located within the page generation code 30', as illustrated in FIG. 3a.
  • the partial page regenerator 250 examines the page generation code 30 as a .class file by using introspection. The partial page regenerator 250 then generates an additional JAVA file containing the additional code 270 defined as a subclass of the original page generation code 30. When compiled, the additional JAVA file becomes a subclass of the original page generation code 30. In another embodiment, the partial page regenerator 250 generates a .class file directly. In another embodiment, the partial page regenerator 250 performs the code wrapping when the page generation code 30 is executed and generates a class object that is stored in memory.
  • the code fragments 265b' and 265c' have been wrapped with similar additional code 270b', 270c'.
  • the additional code 270b', 270c' determines whether the code fragment 265b', 265c' has already been executed with the same argument. If the code fragment 265b', 265c' has been executed, which indicates that the code fragment generates multiple page portions, additional code 270b', 270c' issues a command to copy the previously generated page portion into this duplicate page portion. If the code fragment 265b', 265c' has not been executed, then the additional code 270b', 270c' calls the code fragment (e.g., 265b', 265c') for execution.
  • the term "x”, used after the "start”, “end” and “copy to” instructions, represents an identification tag that is used by the partial page regenerator 250 to identify each generated page portion 260.
  • the term “mod list” represents a modification list that is sent to the client node 205 with the generated page portions 260.
  • the modification list contains commands that instruct the client node 205 on how to incorporate the page portions 260 into the currently displayed page 240.
  • the code fragment 'main' 265a' is not wrapped. After the initial transmittal of the page 240, the header and static information do not change and this code fragment 265a' is not executed again. Consequently, additional code 270 is not needed for the 'main' code fragment 265a'. All of the page portions 260 of the page 240 that can change are located in the "body" of the page 240, as represented by the 'do table' code fragment 265b' and the 'do Share' code fragment 265c'.
  • the 'main' code fragment 265a' includes additional code (not shown) similar to the other wrapped code fragments 268b', 268c'.
  • the additional code (not shown) provides an identification tag for the 'body' part of the 'main' code fragment 265a'.
  • the initial execution provides all of the necessary header information and static data to generate the page 240.
  • a subsequent execution of the 'main' code fragment 265a' is made if the data that the 'main' code fragment 265a' depends on changes. The output of this re-execution is scanned and all but the content of the 'body' part is discarded.
  • the 'main' code fragment 265a' can then be treated like any other code fragment.
  • FIG. 4a shows an embodiment of page generation code 30" having a CGI format and identified code fragments 265a", 265b" and 265c".
  • the code fragments 265a", 265b", 265c" each represent individual scripts.
  • the functionality of additional code 270a" is similar to the functionality of the additional code 270b', 270c' of the servlet format, but the implementation is different than that of the servlet format.
  • the additional code 270a" wraps a CGI Interpreter 275 to create a wrapped CGI Interpreter 268a", instead of wrapping the individual code fragments 265a", 265b", 265c" themselves.
  • the additional code 270a" intercepts the call.
  • there is a single script e.g., page generation code 30
  • the code fragments 265a", 265b", 265c" are not individual scripts, but represent subroutines of that script (e.g., 30").
  • the CGI interpreter 275 is modified with the additional code 270a", not wrapped, so that calls to invoke the subroutines of the script (e.g., code fragments 265a", 265b", 265c”) are intercepted.
  • the partial page generator 250 may also have to intercept access to the data 50 upon which the code fragments 265 depend. This is typically accessed via data access objects.
  • FIG. 4c illustrates an exemplary embodiment where JAVA is used for implementation.
  • data 50 is typically accessed via one or more Java beans 100.
  • the JAVA beans 100 themselves are logically separate from the page generation code 30 and are only responsible for managing access to the data 50.
  • the beans 100 are not considered code fragments 265, as the do not directly generate output that produces the page 240.
  • the partial page regenerator 250 wraps the JAVA beans 100 that retrieve the data 50 with additional code (not shown). Each JAVA bean 100 is a class file, so the partial page regenerator 250 generates a wrapper class (e.g., proxy) for the JAVA bean 100.
  • the partial page regenerator 250 identifies these processes (e.g., methods in an object-oriented language, subroutines) that retrieve data 50, for example, by searching for processes that match a naming convention.
  • an advantage of generating a wrapper class (e.g., proxy) for the JAVA bean 100 is that the JAVA bean code 100 remains unmodified, even during runtime.
  • the partial page regenerator 250 generates additional code for JAVA beans by generating two proxies 105, 110. The generation of two proxies is necessary because the proxy 105 called by the page generation code 30 has the original name of the original process of data access bean 100, so that the proxy 105 is invoked (arrow 125) instead of the original process, to allow interception of that original process. However, if the proxy 105 calls the original process 100, which has the same name, the JAVA classloader will incorrectly resolve this by calling (arrow 130) the proxy 105.
  • the partial page regenerator 250 generates a first proxy 105 that calls a second proxy 110, where the second proxy 110 has a different, arbitrary name.
  • the second proxy 110 is invoked and then calls the original process 100.
  • the second namespace can be achieved using a second Java classloader.
  • this two proxy technique is applicable to JAVA data access objects that are not JAVA beans. For example, this technique can be used to intercept access between a piece of code A and a piece of code B, providing that B does not reference A by class name, and that all (unnamed) references from B to A are also intercepted by the proxy.
  • FIG. 5a illustrates the flow of execution (arrow 280) of the code fragments 265a', 265b', 265c' and additional code 270b', 270c' by the partial page regenerator 250.
  • FIG. 5b illustrates the items that the partial page regenerator 250 generates.
  • the first generated item is the output 283 of page portions 260 of the page 240, which is shown as HTML code.
  • the second generated item is the modification list ("mod list") 284. In one embodiment, the two items are generated concurrently.
  • the letters to the left of the output 283 are not generated by the partial page regenerator 250, but rather are used to indicate the code fragment (wrapped or unwrapped) in FIG. 5 a that generates that particular line of HTML code.
  • the 'main' code fragment 265a' is executed.
  • the 'main' code fragment 265a' initially creates an empty page (e.g., no content in the body section of the HTML page) and uses an identification tag of "0" to identify the portion of the page 240 that contains modifiable page portions 260.
  • the 'main' code fragment 265a' also generates an assign command 285a in the modification list 284 that assigns the content of identification tag "1" to the portion with the identification tag "0" (e.g., refer to TABLE 1 below for description of assign command).
  • the 'main' code fragment 265a' calls the 'do table' code fragment 265b'.
  • the additional code 270b' intercepts the call and begins execution.
  • the additional code 270b' creates the identification tag "1" to identify the beginning of the portion of the page that the additional code 270b' code fragment produces.
  • the additional code 270b' generates the HTML span tag 290a for the identification tag to establish the start of the page portion that the additional code 270b' generates.
  • the additional code 270b' generates an end span tag 295a to identify the end of the page portion identified as "1", once the execution of addition code 270b' is complete.
  • the additional code 270b' determines that the 'do table' code fragment 265b' has not been executed yet and calls the 'do table' code fragment 265b' of the page generation code 30' for execution.
  • the 'do table' code fragment 265b' During execution of the instruction set (not shown) of the 'do table' code fragment 265b' of the page generation code 30, the 'do table' code fragment 265b' generates a ⁇ table> tag in the HTML output 283 and HTML code to generate a header row with table data cells "Name" and "Price".
  • the 'do table' code fragment 265b' receives input data 298 (e.g., ticker symbols for shares of stock) from the storage buffer 54.
  • the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c' of the page generation code 30' for each ticker symbol in the input data 298.
  • the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c'. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution.
  • the additional code 270c' creates the identification tag "2" to identify the beginning of the portion 260 of the page 240 that the additional code 270c' fragment produces the first time the 'do Share' code fragment 265c' is called with the piece of input data "ABCC".
  • the additional code 270c' generates the HTML span tag 290b to establish the start of the page portion that the additional code 270c' generates.
  • the additional code 270c' determines that the 'do Share' code fragment 265c' has not been executed yet with the argument "ABCC" and calls the 'do Share' code fragment 265c' of the page generation code 30' for execution.
  • the 'do Share' code fragment 265c' generates a row in the table with table data cells "ABC Corp.” and "99.9".
  • the additional code 270c' Because the execution of the 'do Share' code fragment 265c' is complete, with respect to that page portion dealing with that piece of input data 298, the additional code 270c' generates an end span tag 295b in the HTML code to establish the end of the portion created by the additional code 270c' fragment. Execution returns back to the 'do table' code fragment 265b'.
  • the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c' again. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution. The additional code 270c' creates the identification tag "3" to identify the beginning of the portion of the page that the additional code 270c' code fragment produces the first time 'do Share' code fragment 265c' is called with the piece of input data "XYZC". The additional code 270c' generates the HTML span tag 290c to establish the start of the page portion that the additional code 270c' generates.
  • the additional code 270c' determines that the 'do Share' code fragment 265c' has not been executed yet with the argument "XYZC" and calls the 'do Share' code fragment 265c' for execution.
  • execution of the instruction set (not shown) of the 'do Share' code fragment 265c' of the page generation code 30 generates a row in the table with table data cells "XYZ Corp.” and "1.2". Because the execution of the 'do Share' code fragment 265c' is complete, with respect to that page portion dealing with that piece of input data 298, the additional code 270c' generates an end span tag 295 c to establish the end of the portion created by the additional code 270c' code fragment.
  • Execution returns back to the 'do table' code fragment 265b'.
  • the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c'. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution. The additional code 270c' creates the identification tag "4" to identify the beginning of the portion of the page that the additional code 270c' code fragment produces the second time 'do Share' code fragment 265c' is called with the piece of input data "ABCC".
  • the additional code 270c' generates the HTML span tag 290d to establish the start of the page portion that the additional code 270c' generates. This time the additional code 270c' determines that the 'do Share' code fragment 265c' has been executed with the argument "ABCC" and does not call the 'do Share' code fragment 265c' for execution. The 'do Share' code fragment 265c', if executed again, would generate a row in the table with table data cells "ABC Corp.” and "99.9", identical to the portion in the identification tag "2".
  • the additional code 270c' Because the 'do Share' code fragment 265c' is not executed, the additional code 270c' generates an end span tag 295d to establish the ending of the portion created by the additional code 270c' code fragment. To generate the portion of the page that is required, the additional code 270c' generates a copy command 285b in the modification list 284 instructing the display alterer 245 of the client node 205 to copy the portion contained in identification tag "2" to the portion contained in identification tag "4" (e.g., refer to Table 1 for description of copy command). Execution returns back to the 'do table' code fragment 265b'. With all the pieces of input data 298 processed, the execution of the 'do table' code fragment 265b' is completed.
  • the additional code 270b' generates an end span tag 295a to establish the ending of the portion generated by the additional code 270b'.
  • Execution returns back to the 'main' code fragment 265a' and from there to the runtime system, which transmits the page portions (e.g., the HTML output file) and the instructions for inserting the page portions (e.g., modification list) to the client node 205 via the server transceiver 235.
  • the page portions e.g., the HTML output file
  • the instructions for inserting the page portions e.g., modification list
  • the additional code 270c' creates the identification tag "5" to identify the beginning of the portion of the page that the additional code 270c' fragment produces the next time 'do Share' code fragment 265c' is called with "XYZC".
  • the additional code 270b' generates an HTML span tag to establish the start of the page portion that the additional code 270b' generates.
  • the additional code 270b' calls the 'do Share' code fragment 265c' for execution.
  • the 'do Share' code fragment 265c' generates a row in the table with table data cells "XYZ Corp.” and "2.5", the new price.
  • the partial page regenerator 250 determines, using the map of correspondences 300 (FIG. 7), that the row with "XYZC" has identification tag "3". The partial page regenerator 250 determines that the rows of the table with ABC Corp. do not need to be updated because the price has not changed. The partial page regenerator 250 transmits the generated HTML output of the updated row and a modification list to the display alterer 245 of the client node 205 for incorporation into the currently displayed web page.
  • the partial page regenerator 250 includes the
  • This command instructs the display alterer 245 to find the HTML output with the identification tag "3" and replace it with the newly transmitted HTML output portion with the identification tag "5".
  • the input data 298 originates from the client node 205.
  • the input data 298 is transmitted from the client node 205 after the client user has inputted the data into one or more user input fields of the transmitted page 240 and clicked on the submit button, update button and/or pressed the enter key.
  • the display alterer 245 of the client node 205 monitors the user input fields of the transmitted page 240.
  • the display alterer 245 When the display alterer 245 has detected data in a user input field (e.g., the user entered data into a field and pressed the tab key or the user entered data and moved the cursor to another part of the page and clicked a mouse key), the display alterer 245 transmits that data to the partial page regenerator 250 with a page update request.
  • a user input field e.g., the user entered data into a field and pressed the tab key or the user entered data and moved the cursor to another part of the page and clicked a mouse key
  • the partial page regenerator 250 provides additional software (e.g., a method referred to as 'feedback') to the client node 205 that is part of the page 240 generated by the page generation code 30.
  • additional software e.g., a method referred to as 'feedback'
  • the additional software arranges that its arguments are transmitted to the server node 210.
  • the partial page regenerator 250 also provides additional software (e.g., a method, also called 'feedback') in the page generation code 30.
  • the 'feedback' method on the server node 210 uses the arguments received by the client node 205 to update the data 50 in the storage buffer 54.
  • part of the page generated might be
  • portfolio is a reference to a data access bean 100 (FIG. 4c).
  • the calling of 'feedback' on the server node 210 causes the partial page regenerator 250 to immediately refresh the page 240, as the page 240 is most likely to have changed.
  • the partial page regenerator 250 determines the identification tags 290 (e.g., HTML span tags) of the portions 260 of the page 240 and whether data 50 for any of those page portions 260 has changed because the partial page regenerator 250 generates a map of correspondences 300 (FIG. 7) as the partial page regenerator 250 creates the page portions 260 which stores such information.
  • a page description model 303 (FIG. 6) that models the layout relationship of the portions of the page.
  • FIG. 6 shows an exemplary embodiment of the logical connections that are modeled by the page description model 303.
  • the page description model 303 includes a node tree 303' having nodes 305a, 305b, 305c, 305d, 305e, 305f and 305g (generally 305).
  • the relationship (i.e., page description model 303) of the page portions 260 is shown as a node tree 303'.
  • other models can be used. Different embodiments of the invention can create and operate at different levels of the node tree 303'.
  • Each node 305 of the node tree 303' has an ID that is unique with respect to each of the other nodes 305 of the node tree 303' and identical with respect to the identification tag (e.g., span tag) inserted into the HTML output 283 sent to the client node 205.
  • the identification tag e.g., span tag
  • the map of correspondences 300 contains the relationship between the model node 305 representing the portion 260 of the page 240 and the actual identification tag (e.g., span tag) of the HTML code sent to the client node 205 to generate the display of the page portion.
  • the map of correspondences 300 includes correspondences between the code fragment fragments 265 create.
  • the map of correspondences 300 also includes correspondences between the code fragments 265 of the page generation code 30 and the data 50 on which each of the code fragments 265 depend.
  • FIG. 7 illustrates an example of a general data structure 308 for the map of correspondences 300.
  • the data structure 308 includes a node tree 303', a value field 320, a key field 330, a table of current values 345 and an event field 360.
  • the value field 320 represents a portion 260 of the page 240 that the execution of a code fragment 265 generates (arrow 323).
  • the data in the value field 320 is the HTML output 283 that is used to generate that portion 260 of the page 240 on the display 220 of the client node 205.
  • the value field 320 has no data, but is just an association of a number of other fields.
  • the value field 320 can be used to create one or more nodes 305.
  • the map of correspondences 300 maps (arrow 325) the value field 320 to those nodes 305 in the node tree 303' that correspond to that specific value field 320.
  • the key field 330 represents (arrow 335) the execution of a code fragment 265.
  • the key field 330 includes the data necessary to re-execute a code fragment 265 to generate the value 320 to which the key corresponds (arrow 340).
  • a single key field 330 can have multiple correspondences (arrow 340) because, as the code fragment 265 of the key 330 is re-executed, subsequent to a change in the data 50 upon which the code fragment 265 depends, a new value 320 is created. At all times however, there is only one current value 320 for that particular key 330.
  • the current value 320 generated by a key 330 is stored in the table of current values 345.
  • the correspondence (arrow 350) of the key field 330 to the value field 320 is always one to one, if the key 330 is represented. In other words, some keys 330 may not be represented in the table of current values 345, but if the key 330 is in the table of current values 345, there is at most one value 320 for that key 330.
  • the table of current values 345 tracks the key field 330 with a specific argument so that there is only one current value field 320 created (e.g., one criterion of a code fragment is that it always produces the same output (i.e., value field 320) with the same arguments and data 50).
  • the map of correspondences 300 maps (arrow 355) value fields 320 to event fields 360.
  • the event field 360 contains data about events that affect the value fields 320 to which they are mapped (arrow 355).
  • a mapped event 360 is simply a notion that a value 320 depends on a piece of data 50 and is used as one means for translating between a notification that 'something' has changed and identifying which values 320 are now invalid.
  • FIG. 8 illustrates an exemplary embodiment of the map of correspondences 300' that the partial page regenerator 250 creates by performing the selective execution example of FIGS 5a and 5b.
  • the table of current values 345' includes the correspondence of one key to one value 320' .
  • the keys of the table of current values 345' represent the code fragments 265 with specific arguments.
  • the table 345' includes a pointer 375 to the unique value 320' that the key 330 generates. As shown, there are three unique values 320', corresponding to three unique page portions 260 (represented by nodes 305b', 305c' and 305d'), that are created in the example.
  • Each value 320' has a pointer 375 to one or more nodes 305' (i.e., all page portions) of the page description model node tree 303'.
  • Each node 305 contains data, or pointers 375 to the data, including the identification tag ("ID") of that particular node, the IDs of parent and children nodes and the value 320' that generated the corresponding node 305'.
  • ID the identification tag
  • the partial page regenerator 250 generates a modification list 284 along with the actual output 283 that is used to generate a portion 260 of the page 240 on the display 220 of the client node 205.
  • the server node 210 transmits the portions 260 of the page 240 that have been modified, along with the modification list for those particular portions 260, to the client node 205.
  • the client node 205 uses the modification list to display the transmitted portions 260 in the appropriate area of the page 240.
  • the display alterer 245 performs the task of incorporating the transmitted page portion 260, using the modification list. To incorporate the transmitted page portion(s) into the displayed page 240, the display alterer 245 must be able to process the commands that are on the modification list.
  • the partial page regenerator 250 determines the capability of the display alterer 245.
  • the display alterer 245 of the client node 205 is part of the client software.
  • the client node 205 can inform the server node 210 which commands the display alterer 245 can understand during the initial request.
  • the display alterer 245 of the client node 205 is a piece of script added to the page 240 dynamically by the server transceiver 235 when the page 240 is first sent to the client node 205.
  • An example of the linking of a script client to a page is described in Appendix 1.
  • the client node 205 informs the server node 210 what 'type' of browser the client node 205 is running as part of the initial request, and the server node 210 can then lookup the capabilities in a table of known browsers stored on the server node 210.
  • the client browser may identify itself as being Internet Explorer 5.0.
  • the server transceiver 235 sends the client browser different versions of the display alterer 245 and/or client transceiver 230, depending on the type of the client browser.
  • the modification list uses commands from a predetermined set of commands.
  • Table 1 lists an example of a set of four types of commands that can appear in the modification list.
  • the first column of Table 1 lists the name of the command.
  • the second column of Table 1 lists the parameters that can be included with each command.
  • the third column of Table 1 lists a general description of each command.
  • the term "node” refers to the nodes 305 of the page description model node tree 303' in the map of correspondences 300.
  • the command parameter uses the identification tag (i.e., ID) to represent the node 305. For example, if the node 305 was a table data cell of the price of the stock and the price changed to 120, the command might be Assign(8, "$120").
  • the display alterer 245 would insert the value of "$120" in the table data cell with the identification tag "8".
  • the partial page regenerator 250 When an event 360 is detected that represents a change in data 50, the partial page regenerator 250 adds the value 320 that corresponds (arrow 355, FIG. 7) to the event 360 on an invalid value list (not shown).
  • the invalid value list is part of the map of correspondences 300. The invalid value list tracks all values currently displayed on the page 240 on the client node 205 that have changed and are no longer valid.
  • the partial page regenerator 250 waits for a request to refresh the page 240 and, in response to that request, generates and transmits updates for the changed portions 260 of the page 240.
  • the request to refresh the page 240 can be generated in many different ways.
  • the user on the client node 205 may request a refresh of the page 240.
  • the display alterer 245 may request a refresh of the page 240 periodically.
  • the partial page regenerator 250 generates the request for a refresh once a change in data 50 is detected.
  • the communication protocol between the client node 205 and the server node 210 support or simulate a server push model (i.e., server node 210 transmitting data to the client node 205 without the client node 205 initiating a request).
  • FIG. 9 illustrates an exemplary process by which the partial page regenerator
  • the partial page regenerator 250 generates updates for portions 260 of the page 240 that have changed.
  • the partial page regenerator 250 generates output for the changed page portions 260 and a modification list for instructing the display alterer 245 on how to incorporate the changed page portions 260 in the displayed page. This exemplary process minimizes the amount of data that is transmitted to the client node 205, by taking advantage of any unchanged portions currently available on the client node 205.
  • the partial page regenerator 250 examines the invalid value list and removes all values 320 (FIG. 7) on the invalid value list (step 400) from the table of current values 345 (FIG. 7), as they represent invalid values.
  • the partial page regenerator 250 generates (step 405) a 'recycleRoot' node. This
  • the partial page regenerator 250 creates (step 410) two initially empty lists of commands, a working list and the modification list.
  • the partial page regenerator 250 generates the working list, and moves groups of items from the working list to the modification list.
  • the commands used in this example are the same as those commands shown in Table 1.
  • the partial page regenerator 250 scans (step 420) the invalid value list to find the highest node that corresponds to one of the values 320 on the invalid value list. (The highest node as the node closest to the root of the node tree 303'.) If there are no such nodes, then the exemplary process jumps (arrow 423) to step 465.
  • the partial page regenerator 250 removes (step 425) the highest node from the page description model node tree 303' for the corresponding invalid value.
  • the children nodes 305 of the highest node are moved (step 430) to the recycleRoot, as they may not themselves be invalid, and may be used later.
  • the partial page regenerator 250 determines (step 435) the key 330 (FIG.
  • the partial page regenerator 250 follows the node 305, which corresponds (arrow 325) to a value 320, which corresponds (arrow 340) to a key 330.
  • the partial page regenerator 250 determines whether there is a current value (i.e., a value 320 in the current value table 345) for the corresponding key 330. If there is a current value for this key 330, then recalculation (step 445) has already taken place for this key 330 on a previous iteration of the loop (arrow 463).
  • the partial page regenerator 250 adds (step 443) the node 305 to the page description model node tree 303' for the corresponding current value and adds (step 443) a 'CopyValue' command to the working list. If recalculation (step 445) has already taken place, the exemplary process jumps (arrow 458) to step 460. If recalculation (step 445) has not already taken place, the partial page regenerator 250 re-executes (step 445) the code fragment 265 associated with the determined key 330 (step 435) to generate a new value. The generated output is saved to an output file (e.g., the HTML output code 283 in FIG. 5b) with an identification tag. The node is added (step 450) to the page description model node tree 303' for the newly generated value. Then the partial page regenerator 250 adds (step 455) an 'Assign' command, using the identification tag, to the working list.
  • an output file e.g., the HTML output code 283 in FIG. 5
  • the code fragment 265 associated with the determined key may call other code fragments (e.g., FIG. 5a, the 'do table' code fragment calls the 'do Share' code fragment).
  • the partial page regenerator 250 For each call that has parameters matching a value 320 in the current value table 345, the partial page regenerator 250, via the additional code 270, intercepts the call. The interception is similar to the example of the execution of 'do Share (ABCC) for the second time in FIGS. 5a and 5b.
  • the partial page regenerator 250 Upon interception, the partial page regenerator 250 generates an empty page portion with an identification tag (e.g., span ID "4", 290d and 295d in FIG. 5b) and generates a 'CopyValue' command, which is added to the working list.
  • an identification tag e.g., span ID "4", 290d and 295d in FIG. 5b
  • the partial page regenerator 250 examines the invalid value list to determine (step 460) whether there are more nodes reachable from the root. If there are more nodes, the process loops (arrow 463) back to step 420. If there are not any more nodes, the process continues with step 465.
  • the partial page regenerator 250 examines the nodes under the recycle root to determine (step 465) whether any nodes can be reused. As these nodes each represent portions 260 of a page available on the client node 205, it is highly beneficial to reuse these. The portions 260 can be reused if they match 'CopyValue' commands on the working list. If a node under the recycleRoot can be reused, the partial page regenerator 250 converts (step 468) the matching 'CopyValue' command to a 'MoveNode' command, with the source node parameter set to the matching node. The parents and children of the reused node are marked (step 468) as used as they may not also be recycled. The partial page regenerator 250 sets (step 468) a flag to indicate that at least one command in the working list has changed.
  • the partial page regenerator 250 continues by sorting (step 470) the commands in the working list, placing the 'Assign' commands first, followed by the 'MoveNode' commands.
  • the partial page regenerator 250 removes (step 470) the 'Assign' commands and the 'MoveNode' commands from the working list and appends them to the modification list, ready for transmission to the client node 205. Remaining 'CopyValue' commands are left on the working list.
  • the partial page regenerator 250 determines (step 475) whether any commands have been changed, by checking to see if a flag was set (step 468). This determination is made because if at least one command has been changed, then it is possible that a previously unreachable node is now reachable. If the flag was set (step 468), the exemplary process loops (arrow 463) back to step 420.
  • the partial page regenerator 250 converts (step 480) all remaining 'CopyValue' commands to 'CopyNode' commands. These are less efficient than a 'MoveNode' command, but still better than separate 'Assign commands.
  • the source for a 'CopyNode' command is any node that has the correct value.
  • the set of nodes related to the value is examined and one node is selected. The only requirement is that this node is one that will be available on the client at the time that the 'CopyNode' command is executed. The requirement can be satisfied by selecting the node with the lowest identification tag as the source node when converting the 'CopyValue' commands, in both step 468 and step 480.
  • the partial page regenerator 250 renames the copied sub-tree so that the resulting sub-tree contains nodes with unique identifiers. Any means may be used for renaming (e.g., pre-order depth first traversal).
  • the partial page regenerator 250 appends (step 485) the working list, which now contains only 'CopyNode' commands, to the modification list.
  • the modification list 284 includes a number of sections. All but the final two sections contain one or more 'Assign commands' followed by one or more 'MoveNode' commands.
  • the partial page regenerator 250 removes (step 490) all nodes left on the recycle list from the page description model node tree 303' for their corresponding values 320. If the value 320 has no remaining corresponding nodes 305 in the page description model node tree 303', then the value 320 is discarded and removed from the current values table 345. The partial page regenerator 250 also removes any event records 360 and keys 330 associated with the discarded values 320. This reflects the commands that will take place on the client node 205. 1.7 Incorporating Updated Portions into the Transmitted Page
  • the partial page regenerator 250 transmits the two items through the server transceiver 235, over the network communication channel 215, through the client transceiver 230 to the display alterer 245.
  • the display alterer 245 incorporates the output 283 using the modification list 284.
  • FIG. 10 illustrates an exemplary embodiment of a process by which the display alterer 245 incorporates the updates for portions 260 of the page 240 that have changed, using the modification list 284 that the server node 210 transmitted along with the updated page portions 260.
  • the modification list 284 consists of a number of sections containing Assign and MoveNode commands, and an optional final section containing only CopyNode commands.
  • the display alterer 245 processes each section of the modification list 284 in turn.
  • the display alterer 245 examines (step 500) the current section of the modification list 284 for 'MoveNode' commands.
  • the display alterer 245 For each 'MoveNode' command, the display alterer 245 saves (step 505) the source node of the 'MoveNode' command, and any descendent nodes, in the storage buffer 225. The display alterer 245 then examines the current selection of the modification list 284 for 'Assign' commands (step 510). For each 'Assign' command, the display alterer 245 inserts (step 515) the output (e.g., displayable portion 260, actual HTML code) of the 'Assign' command into the portion 260 of the page 240 specified by the destination node of the 'Assign' command.
  • the output e.g., displayable portion 260, actual HTML code
  • the display alterer 245 reexamines (step 520) the current section of the modification list 284 for 'MoveNode' commands. For each 'MoveNode' command, the display alterer 245 retrieves (step 530) the appropriate source node temporarily saved (step 505) in the storage buffer 225. The display alterer 245 inserts (step 535) the value of the node, and any descendents, into the portion 260 of the page 240 specified by the destination node of the 'MoveNode' command. The display alterer 245 moves (step 540) to the next section in the modification list 284. If there are no more sections, the process continues at step 565. If the new section does not contain only 'CopyNode' commands, the process continues to step 500.
  • the display alterer 245 examines (step 550) the current section of the modification list 284 for 'CopyNode' commands. For each 'CopyNode' command, the display alterer 245 copies (step 555) the appropriate source node, and any descendents. The display alterer 245 inserts (step 555) the output of the copied node, and any descendents, into the portion 260 of the page 240 specified by the destination node of the 'CopyNode' command. During this copy process, the display alterer 245 renames (step 560) all of the embedded node identification tags of the copied nodes.
  • the display alterer 245 performs all of the incorporation on the HTML code (e.g., a copy of the HTML code of the currently displayed page 240 in the storage buffer 225) and when incorporation of all of the updates is complete, the display alterer 245 displays (step 565) the updated page. In another embodiment, the display alterer 245 displays (step 550) each update as that update is inco ⁇ orated into the displayed page 240.
  • FIGS. 11a, l ib, l ie and l id illustrate an example of the display alterer 245 inco ⁇ orating an update into the displayed page 240.
  • the table i.e., node "1”
  • the table is being updated by adding a new element (i.e., child node with the value "Gamma") to the table.
  • FIG. 1 la illustrates a page description model node tree 303" representing the transmitted page 240 prior to the update. Similar to the example in FIGS. 5a and 5b, the node tree 303" includes a parent node “1" with three children nodes “2", “3", and “4". The child node “2” has a value of "Alpha”. The child node “3” has a value of "Beta”. The child node “4" has a value of "Delta”. FIG. 11a also illustrates the modification list 284" that the partial page regenerator 250 transmitted to the display alterer 245.
  • the display alterer 245 uses the modification list 284" to inco ⁇ orate the changes, following the exemplary process of FIG. 10.
  • the display alterer 245 examines (step 500) the modification list 284" and finds an 'Assign' command.
  • the display alterer 245 also determines (step 500) that there are 'MoveNode' commands associated with the descendents (i.e., child nodes) of the 'Assign' command destination node (i.e., node "1").
  • the modification list 284'" includes implicit actions of saving (step 505) the reusable nodes 603 in the storage buffer 225. Because there is an 'Assign' command for the table, the display alterer 246 removes the descendents of that node to start creating a working version 600 of the page description model node tree 303".
  • the display alterer 245 inserts (step 515) the output as defined in the 'Assign' command.
  • the output of the 'Assign' command though not shown in the modification list 284", is shown in the working version 605 of the page description model node tree 303".
  • the new node "1" includes four descendent nodes with the identification tags "5", "6", “7” and "8".
  • the descendent nodes with the identification tags "5", "6” and “8" are empty.
  • the descendent node with the identification tag "7” has the value "Gamma".
  • the display alterer 245 continues by examining (step 520) the modification list 284" for any 'MoveNode' commands. As shown in FIG. 1 lc, there are three move commands. For each 'MoveNode' command, the display alterer 245 retrieves (step 530) the nodes identified as the source node (i.e., 2,3,4) and inserts (step 535) the values (i.e., Alpha, Beta, Delta) into the destination nodes (i.e., 5,6,8).
  • FIG. 1 Id illustrates the page description model node tree 303'" of the updated page 240, now displayed (step 565) on the display 220 of the client node 205.
  • FIG. 12 is a screenshot of an example of an email page 608 being displayed to a user at the client node 205.
  • a page generation code (not shown) might display a list 610 of messages in an 'inbox' for a particular user. For each message the sender 615, subject 620 and date 625 are shown, together with an indication (not shown) as to whether the message had been read (e.g., displayed in bold).
  • This list 610 also contains links so that if a message were selected, then it would be displayed in full 630.
  • the displayed list 610 of messages is updated in a number of ways
  • the partial page regenerator determines the number of messages, and then executes a loop, outputting a page portion (e.g., html) for each message.
  • Such an email application might be augmented by a more complex interface, for example listing available folders containing email in a 'tree structure' 635.
  • the partial page regenerator creates this structure 635 by executing one fragment for each 'folder', and either displays a closed folder, or displays an open folder and then recursively calls the same fragment to display the contents of the folders. If the generated output contains OnClick' events for each folder that inform the server node 210 when a folder is selected (ie opened or closed), then the page 608 is automatically updated to show the new state of a folder after a user selected it.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method and apparatus for regenerating portions of the page that have changed and transmitting only those portions to the client for display. Executing only the necessary parts of the page generation code and transmitting only changes to the client improves the efficiency of using the resources of the network communication channel, the client node and the server node. Performing these operations only when required, when the data has changed, improves the efficiency of use even further. The invention also takes advantage of any portions of the page that are already on the client by reusing them and thus eliminates the need to regenerate or transmit those reusable portions. In one aspect, the invention relates to a method for augmenting page generation code for partial page regeneration. The method includes receiving page generation code that generates a page and identifying one or more fragments in the page generation code, where each fragment generating a corresponding portion of the page when the fragment is executed. The method further includes providing additional code to operate with the page generation code to control execution of each fragment for partial page regeneration.

Description

Methods and Apparatus for Augmenting Page Generation Code to Effect Partial Page Regeneration
Field of the Invention
The present invention relates generally to apparatus and methods for updating a page sent to a client for display. More specifically, the invention relates to an apparatus and method for regenerating and retransmitting changed portions of the page sent to a client.
Background of the Invention
Computer communication networks typically include one or more nodes called servers and one or more nodes termed clients. A server provides a service to a client upon receiving a request from the client. FIG. 1 illustrates an example of a service that a network 10 may provide. The client 14 communicates with the server 22 using a communication channel 20. The client 14, via its web browser, transmits (arrow 18) a request to the server 22 for a web page 26. The server 22 executes (arrow 34) all of the page generation code 30 to generate a complete web page 26 and transmits (arrow 38) the web page 26 for display on (arrow 42) the client 14. The generated page 26 represents a snapshot of the state of the server-side data 50 at the point in which the page generation code 30 was executed (arrow 34).
For example, consider that the page generation code 30 generates the page 26 so as to include a list of share prices for certain stocks. The server 22 retrieves (arrow 46) the data 50 (i.e., share price) that was stored in the server storage buffer 54 or received (arrow 58) by the server 22 at the point of time in which the program was executed (arrow 34), or sometime before then. The server transmits (arrow 38) and the client displays (arrow 42) the entire generated page 26. The page 26 remains displayed on the client 14 until the client 14 requests (arrow 18) a refresh of the page 26 (i.e., another transmission of the page 26 with a snapshot of the state of the server- side data 50 at the time of the refresh request). Upon such a request (arrow 18), the server 22 re-executes (arrow 34) the page generation code 30 and transmits the new generated page 26 to (arrow 38) the client 14.
Some systems may have a periodic update, where the client requests (arrow 18) a refresh of the page 26 every specified period of time. Upon re-executing (arrow 34) all of the page generation code 30, the server 22 generates another complete page 26. Again, the page 26 represents a snapshot of the state of the server-side data 50 at the point in which the server 22 re-executes (arrow 34) all of the page generation code 30. The data 50 (e.g., share price) in the generated page 26 may be the same as the period before, thus making the execution (arrow 34) of the page generation code 30 and the transmission (arrow 38) of the page 26 unnecessary. Even when the data has changed, the majority of the page 26 will be static elements, which are unchanged
Neither the manual nor periodic update keeps the user timely informed of data 50 as the data 50 changes. The updates are almost unrelated to the changes in the data 50; for example, a page 26 can be transmitted although no data has changed. This update unnecessarily uses network communication channel resources, client resources and server resources.
Summary of the Invention
The invention relates to a method and apparatus for regenerating portions of the page that have changed and transmitting only those portions to the client for display. Executing only the necessary parts of the page generation code and transmitting only changes to the client improves the efficiency of using the resources of the network communication channel, the client node and the server node. Performing these operations only when required, when the data has changed, improves the efficiency of use even further. The invention also takes advantage of any portions of the page that are already on the client by reusing them and thus eliminates the need to regenerate or transmit those reusable portions.
In one aspect, the invention relates to a method for augmenting page generation code for partial page regeneration. The method includes receiving page generation code that generates a page and identifying one or more fragments in the page generation code, where each fragment generating a corresponding portion of the page when the fragment is executed. The method further includes providing additional code to operate with the page generation code to control execution of each fragment for partial page regeneration. In one embodiment, the step of identification includes comparing a process of the page generation code to at least one predetermined criterion to determine whether the process qualifies as a fragment. In another embodiment, the predetermined criterion requires that the process of the page generation code does not modify a global variable. In another embodiment, the predetermined criterion requires that the process of the page generation code does not modify data on which another fragment relies. In another embodiment, the predetermined criterion requires that the process of the page generation code have a predetermined process signature. In another embodiment, the predetermined method signature requires that the return type in the process is a string. In another embodiment, the provided additional code includes additional processes uniquely associated with an overall class that represents the page generation code. In another embodiment, the provided additional code includes additional processes uniquely associated with each identified fragment to intercept calls to the identified fragment. In another embodiment, the provided additional code includes additional processes uniquely associated with a process that retrieves data on which the identified fragment relies. In another embodiment, the process that retrieves data on which an identified fragment relies is a JAVA bean.
In another aspect, the invention relates to a server for augmenting page generation code for partial page regeneration. The server includes a partial page regenerator in communication with an external page code source for receiving page generation code that generates a page. The partial page regenerator identifies one or more fragments in the page generation code, each fragment generating a corresponding portion of the page when executed, and provides additional code to operate with the page generation code to control execution of each fragment for partial page regeneration.
In another embodiment, the partial page regenerator compares a process of a page generation code to at least one predetermined criterion to determine whether the process is a fragment. In another embodiment, the predetermined criterion requires that the process of the page generation code does not modify a global variable. In another embodiment, the predetermined criterion requires that the process of the page generation code does not modify data on which another fragment relies. In another embodiment, the predetermined criterion requires that the process of the page generation code have a predetermined process signature. In another embodiment, the predetermined method signature is of a return type in a process that is a string.
In another embodiment, the partial page regenerator provides additional code that includes additional processes uniquely associated with an overall class that represents the page generation code. In another embodiment, the partial page regenerator provides additional code that includes additional processes uniquely associated with each identified fragment to intercept calls to the identified fragment. In another embodiment, the partial page regenerator provides additional code that includes additional processes uniquely associated with a process that retrieves data on which the identified fragment relies. In another embodiment, the process that retrieves data on which the identified fragment relies is a JAVA bean.
Brief Description of the Drawings
The foregoing and other objects, features and advantages of the present invention, as well as the invention itself, will be more fully understood from the following description of preferred embodiments, when read together with the accompanying drawings.
FIG. 1 is a diagram of a client/server network as known in the prior art.
FIG. 2a is a diagram of an exemplary client/server network embodying the principle of the invention. FIG. 2b is a block diagram of an embodiment of the invention illustrating a correspondence between fragments of page generation code and portions of the generated page and a correspondence between the fragments of page generation code and data stored in a storage device. FIG. 3a is a block diagram of fragments of servlet page generation code.
FIG. 3b is a block diagram of fragments of the servlet page generation code augmented with additional code to control execution of individual fragments according to the invention. FIG. 4a is a block diagram of fragments of CGI page generation code.
FIG. 4b is a block diagram of fragments of CGI page generation code augmented with additional code to control execution of individual fragments according to the invention.
FIG. 4c is a block diagram of a method of wrapping using two proxies. FIG. 5 a is a block diagram of the execution sequence of augmented fragments of servlet page generation code according to the invention.
FIG. 5b is an exemplary output of HTML code for a generated page and the associated modification list, with identification tags identifying portions of the page according to the invention. FIG. 6 is a block diagram of a page description model and correspondences between fragments of page generation code and portions of the generated page according to the invention.
FIG. 7 is a block diagram of an example of the generic data structure for a map of correspondences between fragments, data, and page portions according to the invention.
FIG. 8 is a block diagram of an example of a map of correspondences between fragments, data, and page portions according to the invention.
FIG. 9 is a flow diagram of an example of generating a modification list when data changes according to the invention. FIG. 10 is a flow diagram of an example of incorporating updates using the modification list according to the invention.
FIGS. 11a, l ib, l ie and 1 Id are block diagrams of an example of a process for inserting of a new page portion into a currently displayed page according to the invention.
FIG. 12 is a screenshot of an example of incorporating updates into an email page according to the invention.
Detailed Description of Preferred Embodiments
1.0 Partial Page Regeneration System In broad overview, FIG. 2a illustrates an exemplary embodiment of a partial page regeneration system 200 that includes a first computing system ("client node") 205 in communication with a second computing system ("server node") 210 over a network 215. For example, the network 215 can be a local -area network (LAN), such as a company Intranet or a wide area network (WAN) such as the Internet or the World Wide Web. A user of the client node 205 can be connected to the network 215 through a variety of connections including standard telephone lines, LAN or WAN links (e.g., TI, T3, 56kb, X.25), broadband connections (ISDN, Frame Relay, ATM), and wireless connections. The client node 205 includes a client transceiver 230 to establish communication with the network 215. The server node 210 includes a server transceiver 235 to establish communication with the network 215. The connections can be established using a variety of communication protocols (e.g., HTTP TCP/IP, IPX, SPX, NetBIOS, Ethernet, RS232, and direct asynchronous connections). The client node 205 can be any computing device (e.g., a personal computer, set top box, phone, handheld device, kiosk, etc) used to provide a user interface (e.g., web browser) to an application or web page, or to otherwise present data stored or accessed via the server node 210. The client node 205 includes a display 220, a storage buffer 225, the client transceiver 230 and a display alterer 245. The display alterer 245 is in communication with the client transceiver 230 for transmitting requests to the server node 210 for an update of a web page 240. The display alterer 245 also receives the web page 240 or portions of the web page 240 sent from the server node 210 through the client transceiver 230. The display alterer 245 is in communication with the display 220 for displaying the web page 240 or for incorporating received updated portions of the web page 240 into the currently displayed web page 240. The display alterer 245 is in communication with the storage buffer 225 for temporarily storing web page data needed for the incorporation of the received updated portions of the web page 240. The storage buffer 225 can include persistent and/or volatile storage.
The server nodes 210 and 210' can be any computing device capable of providing the requested services of the client node 205, particularly generating and transmitting portions of the transmitted web page 240. It is to be understood that more or fewer servers than those shown in Fig. 2a can be connected to the network 215. In one embodiment, the server nodes 210 and 210' are two separate computing devices. In another embodiment, the server nodes 210 and 210' are a single computing device. Either implementation is equivalent for practicing the principles of the invention, and thus the reference to a server node 210 hereafter represents either configuration or another equivalent configuration. The server node 210 includes the server transceiver 235, a partial page regenerator 250, page generation code 30, a storage buffer 54 and a data change monitor 255. The server node 210 can receive the page generation code 30 from any source. In one embodiment, the page generation code 30 can be on another physical device that is in communication with the physical device (e.g., server node 210) on which the partial page regenerator 250 resides. In another embodiment, the source can be a programmer who creates the page generation code 30 and stores the code 30 on the server node 210 to accommodate requests from the client node 205. The page generation code 30 can be written in any language and in any format that the server node 210 uses to generate a web page 240. Examples of format for the page generation code 30 include a servlet, a JAVA Server Page ("JSP"), an Active Server Page ("ASP"), a template language, and/or a Common Gateway Interface ("CGI") script.
During operation of the page regeneration system 200, the server node 210 generates and transmits to the client node 205 only those portions of a currently displayed web page 240 that have changed since the web page 240 (or portions of the web page 240) were last transmitted to the client node 205. The client node 205 incorporates those page portions into the currently displayed page 240.
1.1 Portions of a Page and Fragments of Page Generation Code As shown in FIG. 2b, the web page 240 includes a plurality of page portions
260a, 260b, 260c, 260d, 260e, and 260f (generally referred to as 260). The page generation code 30 includes a plurality of code fragments 265a, 265b, 265c, 265d (generally referred to as 265). FIG. 2b illustrates an example of the correspondences between page portions 260a, 260b, 260c, 260d 260e, 260f of the web page 240 and the code fragments 265a, 265b, 265c, 265d of the page generation code 30 that generate the corresponding page portions 260. Examples of format for the web page 240, and thus of the page portions 260, include HTML, XML, VRML, WML, (display) postscript and nroff. Each code fragment 265 generates one or more page portions 260. For example, as illustrated in FIG. 2b, code fragment 265d generates page portions 260c, 260e and 260f.
FIG. 2b also illustrates an example of the correspondences between code fragments 265 of the page generation code 30 and the corresponding data 50a, 50b, 50c, 50d (generally referred to as 50) upon which the code fragments 265 depend. In other words, the data 50 upon which the code fragments 265 depend is the data 50 that the code fragment 265 uses to generate the corresponding page portion 260. Though the embodiment shown has one data element (e.g., 50a) for one fragment (e.g., 265a), this relationship can vary. For example, one code fragment may depend on several data elements, and one data element may be have many code fragments dependent on it.
Referring back to FIG. 2a, the partial page regenerator 250 is in communication with the server transceiver 235 for receiving requests from the client node 205 to refresh the web page 240. The partial page regenerator 250 transmits the web page 240, or portions 260 of the web page 240, to the server transceiver 235 in response to such requests, for transmission to the client node 205. The partial page regenerator 250 is in communication with the page generation code 30 for executing code fragments 265 of the page generation code 30 to create corresponding page portions 260 of the web page 240. The partial page regenerator 250 also determines the data 50 in the storage buffer 54 that the code fragments 265 use to generate the corresponding page portions 260. The partial page regenerator 250 is in communication with the data change monitor 255 to receive notice of any change in the data 50 in the storage buffer 54 upon which the code fragments 265 depend.
1.2 Identifying a Code Fragment
The partial page regenerator 250 identifies code fragments 265 in the page generation code 30. To identify code fragments 265, the partial page regenerator 250 identifies processes (e.g., methods in an object-oriented language, subroutines, functions) that meet one or more criteria. For example, in one embodiment the criterion is that the code fragment 265 (e.g., process) is idempotent, or provides indempotentcy. That is, the code fragment 265 produces identical results every time that code fragment 265 is called with the same arguments and the same dependent data 50. In other words, when the code fragment 265 is executed there are no side effects that change the results of calls to other code fragments (e.g., no updating of global counters) or that change dependent data 50. The idempotent property allows the partial page regenerator 250 to substitute a previously cached output generated by the code fragment for another page portion generated by the same code fragment, rather than calling that code fragment again. For example, as depicted in the embodiment in FIG. 2b, code fragment 265d generates page portion 260c. Instead of executing code fragment 265d two more times, page portions 260e and 260f can be generated simply be copying the portion 260c because the property of the fragment 265d is such that the fragment 265d will produces the same output each time it is called with the same arguments. The partial page regenerator 250 determines that a process (e.g., method in an object-oriented language, subroutine, function) in the page generation code 30 meets this criterion by verifying, for example, that the process does not contain any global variables that the process changes. If the process meets the criterion, the partial page regenerator 250 identifies the process as a code fragment 265 in a map of correspondences 300 (FIG. 7) that the partial page regenerator 250 generates.
For example, another embodiment uses the criterion that a process (e.g., method in an object-oriented language, subroutine, function) generates output (e.g., HTML code) that defines one or more page portions 260 of the web page 240. The partial page regenerator 250 determines that a process meets this criterion by verifying, for example, that the process includes a certain return type (e.g., returns String). In other embodiments, the partial page regenerator 250 verifies the process follows a certain predefined naming convention (e.g., called fragment_x), and/or a certain predefined annotation to the process (e.g., #defιne foo_is_a_fragment). In certain formats, JSP for example, embedded tags may exist that match pieces of the code 30 to portions of the page 240 that the pieces generate. In these formats, the tags can be used as identifying code fragments 265. In other embodiments the partial page regenerator 250 verifies the process includes other certain additional attributes, such as being included in a list of process names provided to the partial page regenerator 250 at runtime (i.e., when the page generation code 30 is executed).
In one embodiment, the partial page regenerator 250 examines the page generation code 30 using a standard JAVA technique 'introspection'. An advantage is that the partial page regenerator 250 does not need to decompile or have source access to the page generation code 30. This allows the partial page regenerator 250 to work with any page generation code 30, regardless of restrictions (e.g., physical or license restrictions) to source access of the page generation code 30.
1.3 Wrapping a Code Fragment with Additional Code
After identifying the code fragments 265, the partial page regenerator 250 needs the ability to execute the code fragments 265 individually from and independently of other parts of the page generation code 30. Because the page generation code 30 is written to be executed in its entirety, the partial page regenerator 260 must create additional code, relating to the page generation code 30, to selectively control execution of the code fragments. To do this, the partial page regenerator 250 augments the page generation code 30 to enable individual and independent execution of each of the code fragments 265.
In one embodiment, the additional code takes the same name as the code fragment 265 that the additional code is augmenting. By taking the same name, the additional code is called and executed instead of the code fragment 265 of the partial page generation code 30. The additional code controls whether the code fragment 265 of the page generation code 30 with the same name is subsequently called and executed. This control allows the selective execution of the code fragments 265 of the page generation code 30.
1.3.1 Wrapping - A Serylet Format Example FIG. 3a shows an embodiment of page generation code 30' having a servlet format and a plurality of code fragments 265a', 265b', 265c'. The code fragment 265a' identified as 'main' represents all of the header information and the static information of the web page 240. The code fragment 265b' identified as 'do table' represents the part (e.g., process, method) of the page generation code 30' that creates a table on the Web page 240. The code fragment 265c' identified as 'do Share' represents the process that creates an individual element of the table.
FIG. 3b illustrates the addition of code 270b, 270c (generally 270), sometimes referred to as code wrapping, to create wrapped code fragments 268b', 268c', respectively. The wrapped code fragments 268b', 268c' are shown with the code fragments 265b', 265c' enclosed within the wrapped code fragments 268b', 268c'. In one embodiment, the code wrapping 270b', 270c' as shown in FIG. 3b represents a logical connection only. In other words, the additional code 270b', 270c' is not located in the page generation code 30', but in a different area on the server node 210. In that embodiment, only the code fragments 265b', 265c' are physically located within the page generation code 30', as illustrated in FIG. 3a.
In one embodiment, to create the additional code 270, the partial page regenerator 250 examines the page generation code 30 as a .class file by using introspection. The partial page regenerator 250 then generates an additional JAVA file containing the additional code 270 defined as a subclass of the original page generation code 30. When compiled, the additional JAVA file becomes a subclass of the original page generation code 30. In another embodiment, the partial page regenerator 250 generates a .class file directly. In another embodiment, the partial page regenerator 250 performs the code wrapping when the page generation code 30 is executed and generates a class object that is stored in memory.
In the embodiment illustrated in FIG. 3b, the code fragments 265b' and 265c' have been wrapped with similar additional code 270b', 270c'. The additional code 270b', 270c' determines whether the code fragment 265b', 265c' has already been executed with the same argument. If the code fragment 265b', 265c' has been executed, which indicates that the code fragment generates multiple page portions, additional code 270b', 270c' issues a command to copy the previously generated page portion into this duplicate page portion. If the code fragment 265b', 265c' has not been executed, then the additional code 270b', 270c' calls the code fragment (e.g., 265b', 265c') for execution.
In the additional code 270b', 270c', the term "x", used after the "start", "end" and "copy to" instructions, represents an identification tag that is used by the partial page regenerator 250 to identify each generated page portion 260. The term "mod list" represents a modification list that is sent to the client node 205 with the generated page portions 260. The modification list contains commands that instruct the client node 205 on how to incorporate the page portions 260 into the currently displayed page 240.
In the illustrated embodiment of FIG. 3b, the code fragment 'main' 265a' is not wrapped. After the initial transmittal of the page 240, the header and static information do not change and this code fragment 265a' is not executed again. Consequently, additional code 270 is not needed for the 'main' code fragment 265a'. All of the page portions 260 of the page 240 that can change are located in the "body" of the page 240, as represented by the 'do table' code fragment 265b' and the 'do Share' code fragment 265c'.
In another embodiment, if the page generation code 30 does not include a body page portion, the 'main' code fragment 265a' includes additional code (not shown) similar to the other wrapped code fragments 268b', 268c'. The additional code (not shown) provides an identification tag for the 'body' part of the 'main' code fragment 265a'. The initial execution provides all of the necessary header information and static data to generate the page 240. A subsequent execution of the 'main' code fragment 265a' is made if the data that the 'main' code fragment 265a' depends on changes. The output of this re-execution is scanned and all but the content of the 'body' part is discarded. The 'main' code fragment 265a' can then be treated like any other code fragment.
1.3.2 Wrapping - A CGI Format Example
FIG. 4a shows an embodiment of page generation code 30" having a CGI format and identified code fragments 265a", 265b" and 265c". In the CGI format, the code fragments 265a", 265b", 265c" each represent individual scripts. As illustrated in FIG. 4b, the functionality of additional code 270a" is similar to the functionality of the additional code 270b', 270c' of the servlet format, but the implementation is different than that of the servlet format. The additional code 270a" wraps a CGI Interpreter 275 to create a wrapped CGI Interpreter 268a", instead of wrapping the individual code fragments 265a", 265b", 265c" themselves. When each of the code fragments 265a", 265b", 265c" (i.e., scripts) is called, the additional code 270a" intercepts the call.
In another embodiment, there is a single script (e.g., page generation code 30") and the code fragments 265a", 265b", 265c" are not individual scripts, but represent subroutines of that script (e.g., 30"). In this embodiment, the CGI interpreter 275 is modified with the additional code 270a", not wrapped, so that calls to invoke the subroutines of the script (e.g., code fragments 265a", 265b", 265c") are intercepted. 1.3.3 Wrapping a JAVA Bean that Retrieves Data
In addition to executing the code fragments 265 individually from and independently of other parts of the page generation code 30, the partial page generator 250 may also have to intercept access to the data 50 upon which the code fragments 265 depend. This is typically accessed via data access objects. FIG. 4c illustrates an exemplary embodiment where JAVA is used for implementation. In this embodiment, data 50 is typically accessed via one or more Java beans 100. The JAVA beans 100 themselves are logically separate from the page generation code 30 and are only responsible for managing access to the data 50. The beans 100 are not considered code fragments 265, as the do not directly generate output that produces the page 240.
To intercept and control access to data 50, the partial page regenerator 250 wraps the JAVA beans 100 that retrieve the data 50 with additional code (not shown). Each JAVA bean 100 is a class file, so the partial page regenerator 250 generates a wrapper class (e.g., proxy) for the JAVA bean 100. The partial page regenerator 250 identifies these processes (e.g., methods in an object-oriented language, subroutines) that retrieve data 50, for example, by searching for processes that match a naming convention.
For example, for JAVA beans the naming convention is: void set<propertyname>(Object)
Object get<propertyname>() etc. Similarly as described above, an advantage of generating a wrapper class (e.g., proxy) for the JAVA bean 100 is that the JAVA bean code 100 remains unmodified, even during runtime. In one embodiment, the partial page regenerator 250 generates additional code for JAVA beans by generating two proxies 105, 110. The generation of two proxies is necessary because the proxy 105 called by the page generation code 30 has the original name of the original process of data access bean 100, so that the proxy 105 is invoked (arrow 125) instead of the original process, to allow interception of that original process. However, if the proxy 105 calls the original process 100, which has the same name, the JAVA classloader will incorrectly resolve this by calling (arrow 130) the proxy 105.
The partial page regenerator 250 generates a first proxy 105 that calls a second proxy 110, where the second proxy 110 has a different, arbitrary name. The second proxy 110 is invoked and then calls the original process 100. By arranging that the second proxy 110 and JAVA bean 100 exist in a different name space from the first proxy 105 and page generation code 30, using the two proxies 105, 110 and two namespaces allows for duplicative naming convention. The second namespace can be achieved using a second Java classloader. Though discussed as a technique for JAVA beans 100 that retrieve data 50, this two proxy technique is applicable to JAVA data access objects that are not JAVA beans. For example, this technique can be used to intercept access between a piece of code A and a piece of code B, providing that B does not reference A by class name, and that all (unnamed) references from B to A are also intercepted by the proxy.
1.3.4 Wrapping - An Example of Selected Execution and Generated Output
FIG. 5a illustrates the flow of execution (arrow 280) of the code fragments 265a', 265b', 265c' and additional code 270b', 270c' by the partial page regenerator 250. FIG. 5b illustrates the items that the partial page regenerator 250 generates. The first generated item is the output 283 of page portions 260 of the page 240, which is shown as HTML code. The second generated item is the modification list ("mod list") 284. In one embodiment, the two items are generated concurrently. The letters to the left of the output 283 are not generated by the partial page regenerator 250, but rather are used to indicate the code fragment (wrapped or unwrapped) in FIG. 5 a that generates that particular line of HTML code.
Following the flow of execution (arrow 280, FIG. 5a), first the 'main' code fragment 265a' is executed. The 'main' code fragment 265a' initially creates an empty page (e.g., no content in the body section of the HTML page) and uses an identification tag of "0" to identify the portion of the page 240 that contains modifiable page portions 260. The 'main' code fragment 265a' also generates an assign command 285a in the modification list 284 that assigns the content of identification tag "1" to the portion with the identification tag "0" (e.g., refer to TABLE 1 below for description of assign command). The 'main' code fragment 265a' calls the 'do table' code fragment 265b'.
Since the 'do table' code fragment 265b' is wrapped with additional code 270b', the additional code 270b' intercepts the call and begins execution. The additional code 270b' creates the identification tag "1" to identify the beginning of the portion of the page that the additional code 270b' code fragment produces. The additional code 270b' generates the HTML span tag 290a for the identification tag to establish the start of the page portion that the additional code 270b' generates. The additional code 270b' generates an end span tag 295a to identify the end of the page portion identified as "1", once the execution of addition code 270b' is complete. Using the map of correspondences 300 (FIG. 7), the additional code 270b' determines that the 'do table' code fragment 265b' has not been executed yet and calls the 'do table' code fragment 265b' of the page generation code 30' for execution.
During execution of the instruction set (not shown) of the 'do table' code fragment 265b' of the page generation code 30, the 'do table' code fragment 265b' generates a <table> tag in the HTML output 283 and HTML code to generate a header row with table data cells "Name" and "Price". The 'do table' code fragment 265b' receives input data 298 (e.g., ticker symbols for shares of stock) from the storage buffer 54.
In response to the input data 298, the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c' of the page generation code 30' for each ticker symbol in the input data 298. For the first piece of data "ABCC", the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c'. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution. The additional code 270c' creates the identification tag "2" to identify the beginning of the portion 260 of the page 240 that the additional code 270c' fragment produces the first time the 'do Share' code fragment 265c' is called with the piece of input data "ABCC".
The additional code 270c' generates the HTML span tag 290b to establish the start of the page portion that the additional code 270c' generates. The additional code 270c' determines that the 'do Share' code fragment 265c' has not been executed yet with the argument "ABCC" and calls the 'do Share' code fragment 265c' of the page generation code 30' for execution. During execution of the instruction set (not shown) of the 'do Share' code fragment 265c' of the page generation code 30, the 'do Share' code fragment 265c' generates a row in the table with table data cells "ABC Corp." and "99.9". Because the execution of the 'do Share' code fragment 265c' is complete, with respect to that page portion dealing with that piece of input data 298, the additional code 270c' generates an end span tag 295b in the HTML code to establish the end of the portion created by the additional code 270c' fragment. Execution returns back to the 'do table' code fragment 265b'.
For the next piece of data "XYZC", the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c' again. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution. The additional code 270c' creates the identification tag "3" to identify the beginning of the portion of the page that the additional code 270c' code fragment produces the first time 'do Share' code fragment 265c' is called with the piece of input data "XYZC". The additional code 270c' generates the HTML span tag 290c to establish the start of the page portion that the additional code 270c' generates. The additional code 270c' determines that the 'do Share' code fragment 265c' has not been executed yet with the argument "XYZC" and calls the 'do Share' code fragment 265c' for execution. During execution of the instruction set (not shown) of the 'do Share' code fragment 265c' of the page generation code 30 generates a row in the table with table data cells "XYZ Corp." and "1.2". Because the execution of the 'do Share' code fragment 265c' is complete, with respect to that page portion dealing with that piece of input data 298, the additional code 270c' generates an end span tag 295 c to establish the end of the portion created by the additional code 270c' code fragment. Execution returns back to the 'do table' code fragment 265b'. For the next piece of data "ABCC", the 'do table' code fragment 265b' calls the 'do Share' code fragment 265c'. Because the 'do Share' code fragment 265c' is wrapped with additional code 270c', the additional code 270c' intercepts the call and begins execution. The additional code 270c' creates the identification tag "4" to identify the beginning of the portion of the page that the additional code 270c' code fragment produces the second time 'do Share' code fragment 265c' is called with the piece of input data "ABCC". The additional code 270c' generates the HTML span tag 290d to establish the start of the page portion that the additional code 270c' generates. This time the additional code 270c' determines that the 'do Share' code fragment 265c' has been executed with the argument "ABCC" and does not call the 'do Share' code fragment 265c' for execution. The 'do Share' code fragment 265c', if executed again, would generate a row in the table with table data cells "ABC Corp." and "99.9", identical to the portion in the identification tag "2".
Because the 'do Share' code fragment 265c' is not executed, the additional code 270c' generates an end span tag 295d to establish the ending of the portion created by the additional code 270c' code fragment. To generate the portion of the page that is required, the additional code 270c' generates a copy command 285b in the modification list 284 instructing the display alterer 245 of the client node 205 to copy the portion contained in identification tag "2" to the portion contained in identification tag "4" (e.g., refer to Table 1 for description of copy command). Execution returns back to the 'do table' code fragment 265b'. With all the pieces of input data 298 processed, the execution of the 'do table' code fragment 265b' is completed. The additional code 270b' generates an end span tag 295a to establish the ending of the portion generated by the additional code 270b'. Execution returns back to the 'main' code fragment 265a' and from there to the runtime system, which transmits the page portions (e.g., the HTML output file) and the instructions for inserting the page portions (e.g., modification list) to the client node 205 via the server transceiver 235.
From the illustrative example of FIGS. 5a and 5b, it is easy to see that when the page 240 is subsequently updated, for example, because the price of a share of XYZ Corp. increased, the execution and output can be further reduced. In one embodiment, for example, for a subsequent update only the row of the table that has changed is transmitted to the client node 205. In this embodiment the partial page regenerator 250 executes the 'do share' code fragment 265c', with its associated additional code 270c', using "XYZC" as the argument. The additional code 270c' creates the identification tag "5" to identify the beginning of the portion of the page that the additional code 270c' fragment produces the next time 'do Share' code fragment 265c' is called with "XYZC". The additional code 270b' generates an HTML span tag to establish the start of the page portion that the additional code 270b' generates. The additional code 270b' calls the 'do Share' code fragment 265c' for execution. The 'do Share' code fragment 265c' generates a row in the table with table data cells "XYZ Corp." and "2.5", the new price. Since the execution of the 'do Share' code fragment 265c' is complete, the additional code 270c' generates an end tag for span id=5 to establish the ending of the portion created by the additional code 270c' fragment. The partial page regenerator 250 determines, using the map of correspondences 300 (FIG. 7), that the row with "XYZC" has identification tag "3". The partial page regenerator 250 determines that the rows of the table with ABC Corp. do not need to be updated because the price has not changed. The partial page regenerator 250 transmits the generated HTML output of the updated row and a modification list to the display alterer 245 of the client node 205 for incorporation into the currently displayed web page. The partial page regenerator 250 includes the
command "Assign 5 -» 3" in the transmitted modification list (e.g., refer to Table 1
for description of assign command). This command instructs the display alterer 245 to find the HTML output with the identification tag "3" and replace it with the newly transmitted HTML output portion with the identification tag "5".
1.3.5 Updating the Server Storage Buffer with Client Feedback
In the exemplary embodiment of FIG. 5a, the input data 298 originates from the client node 205. In this embodiment, the input data 298 is transmitted from the client node 205 after the client user has inputted the data into one or more user input fields of the transmitted page 240 and clicked on the submit button, update button and/or pressed the enter key. In another embodiment, the display alterer 245 of the client node 205 monitors the user input fields of the transmitted page 240. When the display alterer 245 has detected data in a user input field (e.g., the user entered data into a field and pressed the tab key or the user entered data and moved the cursor to another part of the page and clicked a mouse key), the display alterer 245 transmits that data to the partial page regenerator 250 with a page update request.
In yet another embodiment, the partial page regenerator 250 provides additional software (e.g., a method referred to as 'feedback') to the client node 205 that is part of the page 240 generated by the page generation code 30. When the additional software is called (e.g., by user action), the additional software arranges that its arguments are transmitted to the server node 210. The partial page regenerator 250 also provides additional software (e.g., a method, also called 'feedback') in the page generation code 30. The 'feedback' method on the server node 210 uses the arguments received by the client node 205 to update the data 50 in the storage buffer 54.
For example part of the page generated might be
<input type- 'text" onchange- 'feedback(value)"> This displays an input box, and includes a piece of custom code (feedback(value)) that is called whenever the user enters a value and presses tab, or moves the mouse. This will call the method 'feedback' on the client node 205 in response to this action, passing the value entered. The value is transmitted to the server node 210. The method called 'feedback' in the page generation code 30 on the server node 210 is called with this value as an argument. This might be (for example)
Void feedback(String stock)
{ portfolio . setCurrentStock(stock) ;
} where portfolio is a reference to a data access bean 100 (FIG. 4c).
In another embodiment, the calling of 'feedback' on the server node 210 causes the partial page regenerator 250 to immediately refresh the page 240, as the page 240 is most likely to have changed.
1.4 Map of Correspondences
The partial page regenerator 250 determines the identification tags 290 (e.g., HTML span tags) of the portions 260 of the page 240 and whether data 50 for any of those page portions 260 has changed because the partial page regenerator 250 generates a map of correspondences 300 (FIG. 7) as the partial page regenerator 250 creates the page portions 260 which stores such information. Within the map of correspondences 300 is a page description model 303 (FIG. 6) that models the layout relationship of the portions of the page.
1.4.1 Map of Correspondences - Page Description Model
FIG. 6 shows an exemplary embodiment of the logical connections that are modeled by the page description model 303. Using the same illustrative example as described for FIGS. 5a and 5b, the page description model 303 includes a node tree 303' having nodes 305a, 305b, 305c, 305d, 305e, 305f and 305g (generally 305). The relationship (i.e., page description model 303) of the page portions 260 is shown as a node tree 303'. In other embodiments, other models can be used. Different embodiments of the invention can create and operate at different levels of the node tree 303'. In other words, some updates will deal only with children nodes, while others will use parent nodes to effect an update at a child node. The smaller the amount of data that is generated and transmitted to update a page 240, the less resources that are needed to effect the update. Each node 305 of the node tree 303' has an ID that is unique with respect to each of the other nodes 305 of the node tree 303' and identical with respect to the identification tag (e.g., span tag) inserted into the HTML output 283 sent to the client node 205. In another embodiment, if the node ID is different from the inserted identification tag, the map of correspondences 300 contains the relationship between the model node 305 representing the portion 260 of the page 240 and the actual identification tag (e.g., span tag) of the HTML code sent to the client node 205 to generate the display of the page portion. To create the page description model 303, the map of correspondences 300 includes correspondences between the code fragment fragments 265 create. The map of correspondences 300 also includes correspondences between the code fragments 265 of the page generation code 30 and the data 50 on which each of the code fragments 265 depend.
1.4.2 Map of Correspondences - Data Structure FIG. 7 illustrates an example of a general data structure 308 for the map of correspondences 300. The data structure 308 includes a node tree 303', a value field 320, a key field 330, a table of current values 345 and an event field 360. The value field 320 represents a portion 260 of the page 240 that the execution of a code fragment 265 generates (arrow 323). In one embodiment, the data in the value field 320 is the HTML output 283 that is used to generate that portion 260 of the page 240 on the display 220 of the client node 205. In another embodiment, there is no need to store the HTML output itself, other than temporarily in the modification list and work list. The value field 320 has no data, but is just an association of a number of other fields. The value field 320 can be used to create one or more nodes 305. The map of correspondences 300 maps (arrow 325) the value field 320 to those nodes 305 in the node tree 303' that correspond to that specific value field 320.
The key field 330 represents (arrow 335) the execution of a code fragment 265. The key field 330 includes the data necessary to re-execute a code fragment 265 to generate the value 320 to which the key corresponds (arrow 340). A single key field 330 can have multiple correspondences (arrow 340) because, as the code fragment 265 of the key 330 is re-executed, subsequent to a change in the data 50 upon which the code fragment 265 depends, a new value 320 is created. At all times however, there is only one current value 320 for that particular key 330. The current value 320 generated by a key 330 is stored in the table of current values 345. In the table of current values 345, the correspondence (arrow 350) of the key field 330 to the value field 320 is always one to one, if the key 330 is represented. In other words, some keys 330 may not be represented in the table of current values 345, but if the key 330 is in the table of current values 345, there is at most one value 320 for that key 330. The table of current values 345 tracks the key field 330 with a specific argument so that there is only one current value field 320 created (e.g., one criterion of a code fragment is that it always produces the same output (i.e., value field 320) with the same arguments and data 50). The map of correspondences 300 maps (arrow 355) value fields 320 to event fields 360. The event field 360 contains data about events that affect the value fields 320 to which they are mapped (arrow 355). In a generic sense, a mapped event 360 is simply a notion that a value 320 depends on a piece of data 50 and is used as one means for translating between a notification that 'something' has changed and identifying which values 320 are now invalid.
For example, reference to events that indicate a change of the data 50 on which the value field 320 depends can be stored in the event field 360. With this correspondence (arrow 355), when that data 50 changes, or an event is generated representing a change in the data 50, the partial page regenerator 250 determines that those nodes 305, which are mapped (arrow 325) to the value field 320 mapped (arrow 355) to the event 360 representing the changed data 50, are no longer valid and must be updated. The generation and monitoring of these types of data 50 change events 360 are well known in the art and any generating and monitoring technique is acceptable. 1.4.3 Map of Correspondences - Example Using Figures 5a and 5b
FIG. 8 illustrates an exemplary embodiment of the map of correspondences 300' that the partial page regenerator 250 creates by performing the selective execution example of FIGS 5a and 5b. The table of current values 345' includes the correspondence of one key to one value 320' . The keys of the table of current values 345' represent the code fragments 265 with specific arguments. The table 345' includes a pointer 375 to the unique value 320' that the key 330 generates. As shown, there are three unique values 320', corresponding to three unique page portions 260 (represented by nodes 305b', 305c' and 305d'), that are created in the example. Each value 320' has a pointer 375 to one or more nodes 305' (i.e., all page portions) of the page description model node tree 303'. Each node 305 contains data, or pointers 375 to the data, including the identification tag ("ID") of that particular node, the IDs of parent and children nodes and the value 320' that generated the corresponding node 305'.
1.5 Instructions for Incorporation of Page Portions
As shown in FIG. 5b, the partial page regenerator 250 generates a modification list 284 along with the actual output 283 that is used to generate a portion 260 of the page 240 on the display 220 of the client node 205. The server node 210 transmits the portions 260 of the page 240 that have been modified, along with the modification list for those particular portions 260, to the client node 205. The client node 205 uses the modification list to display the transmitted portions 260 in the appropriate area of the page 240. The display alterer 245 performs the task of incorporating the transmitted page portion 260, using the modification list. To incorporate the transmitted page portion(s) into the displayed page 240, the display alterer 245 must be able to process the commands that are on the modification list. The partial page regenerator 250 determines the capability of the display alterer 245. In one embodiment, the display alterer 245 of the client node 205 is part of the client software. In this embodiment, the client node 205 can inform the server node 210 which commands the display alterer 245 can understand during the initial request.
In another embodiment, the display alterer 245 of the client node 205 is a piece of script added to the page 240 dynamically by the server transceiver 235 when the page 240 is first sent to the client node 205. An example of the linking of a script client to a page is described in Appendix 1.
In this embodiment, the client node 205 informs the server node 210 what 'type' of browser the client node 205 is running as part of the initial request, and the server node 210 can then lookup the capabilities in a table of known browsers stored on the server node 210. (For example, the client browser may identify itself as being Internet Explorer 5.0). In yet another embodiment, the server transceiver 235 sends the client browser different versions of the display alterer 245 and/or client transceiver 230, depending on the type of the client browser.
1.5.1 Command Examples
The modification list uses commands from a predetermined set of commands. For one embodiment, Table 1 lists an example of a set of four types of commands that can appear in the modification list. The first column of Table 1 lists the name of the command. The second column of Table 1 lists the parameters that can be included with each command. The third column of Table 1 lists a general description of each command. The term "node" refers to the nodes 305 of the page description model node tree 303' in the map of correspondences 300. The command parameter uses the identification tag (i.e., ID) to represent the node 305. For example, if the node 305 was a table data cell of the price of the stock and the price changed to 120, the command might be Assign(8, "$120"). The display alterer 245 would insert the value of "$120" in the table data cell with the identification tag "8".
Figure imgf000032_0001
Table 1
1.6 Updating Page When Data Changes
When an event 360 is detected that represents a change in data 50, the partial page regenerator 250 adds the value 320 that corresponds (arrow 355, FIG. 7) to the event 360 on an invalid value list (not shown). In one embodiment, the invalid value list is part of the map of correspondences 300. The invalid value list tracks all values currently displayed on the page 240 on the client node 205 that have changed and are no longer valid. Once there is an entry on the invalid value list, the partial page regenerator 250 waits for a request to refresh the page 240 and, in response to that request, generates and transmits updates for the changed portions 260 of the page 240.
The request to refresh the page 240 can be generated in many different ways. For example, the user on the client node 205 may request a refresh of the page 240. In another embodiment, the display alterer 245 may request a refresh of the page 240 periodically. In another embodiment, the partial page regenerator 250 generates the request for a refresh once a change in data 50 is detected. For example, as stated above, when the 'feedback' method is called on the server node 210, the partial page regenerator 250 automatically generates a request for a refresh. In another embodiment, the communication protocol between the client node 205 and the server node 210 support or simulate a server push model (i.e., server node 210 transmitting data to the client node 205 without the client node 205 initiating a request).
1.6.1 Generating Updates for Portions of the Transmitted Page FIG. 9 illustrates an exemplary process by which the partial page regenerator
250 generates updates for portions 260 of the page 240 that have changed. The partial page regenerator 250 generates output for the changed page portions 260 and a modification list for instructing the display alterer 245 on how to incorporate the changed page portions 260 in the displayed page. This exemplary process minimizes the amount of data that is transmitted to the client node 205, by taking advantage of any unchanged portions currently available on the client node 205.
To start the exemplary process, the partial page regenerator 250 examines the invalid value list and removes all values 320 (FIG. 7) on the invalid value list (step 400) from the table of current values 345 (FIG. 7), as they represent invalid values. The partial page regenerator 250 generates (step 405) a 'recycleRoot' node. This
'recycleRoot' node is a temporary place used to store nodes 305 that might be reused later. The partial page regenerator 250 creates (step 410) two initially empty lists of commands, a working list and the modification list. The partial page regenerator 250 generates the working list, and moves groups of items from the working list to the modification list. The commands used in this example are the same as those commands shown in Table 1.
The partial page regenerator 250 scans (step 420) the invalid value list to find the highest node that corresponds to one of the values 320 on the invalid value list. (The highest node as the node closest to the root of the node tree 303'.) If there are no such nodes, then the exemplary process jumps (arrow 423) to step 465. The partial page regenerator 250 removes (step 425) the highest node from the page description model node tree 303' for the corresponding invalid value. The children nodes 305 of the highest node are moved (step 430) to the recycleRoot, as they may not themselves be invalid, and may be used later. The partial page regenerator 250 determines (step 435) the key 330 (FIG. 7) used to recalculate the corresponding value of the highest node, using the map of correspondences 300. For example, using FIG. 7, the partial page regenerator 250 follows the node 305, which corresponds (arrow 325) to a value 320, which corresponds (arrow 340) to a key 330. Once the key 330 is determined (step 435), the partial page regenerator 250 determines whether there is a current value (i.e., a value 320 in the current value table 345) for the corresponding key 330. If there is a current value for this key 330, then recalculation (step 445) has already taken place for this key 330 on a previous iteration of the loop (arrow 463). If recalculation (step 445) has already taken place, the partial page regenerator 250 adds (step 443) the node 305 to the page description model node tree 303' for the corresponding current value and adds (step 443) a 'CopyValue' command to the working list. If recalculation (step 445) has already taken place, the exemplary process jumps (arrow 458) to step 460. If recalculation (step 445) has not already taken place, the partial page regenerator 250 re-executes (step 445) the code fragment 265 associated with the determined key 330 (step 435) to generate a new value. The generated output is saved to an output file (e.g., the HTML output code 283 in FIG. 5b) with an identification tag. The node is added (step 450) to the page description model node tree 303' for the newly generated value. Then the partial page regenerator 250 adds (step 455) an 'Assign' command, using the identification tag, to the working list.
During re-execution (step 445), the code fragment 265 associated with the determined key (step 435) may call other code fragments (e.g., FIG. 5a, the 'do table' code fragment calls the 'do Share' code fragment). For each call that has parameters matching a value 320 in the current value table 345, the partial page regenerator 250, via the additional code 270, intercepts the call. The interception is similar to the example of the execution of 'do Share (ABCC) for the second time in FIGS. 5a and 5b. Upon interception, the partial page regenerator 250 generates an empty page portion with an identification tag (e.g., span ID "4", 290d and 295d in FIG. 5b) and generates a 'CopyValue' command, which is added to the working list.
The partial page regenerator 250 examines the invalid value list to determine (step 460) whether there are more nodes reachable from the root. If there are more nodes, the process loops (arrow 463) back to step 420. If there are not any more nodes, the process continues with step 465.
The partial page regenerator 250 examines the nodes under the recycle root to determine (step 465) whether any nodes can be reused. As these nodes each represent portions 260 of a page available on the client node 205, it is highly beneficial to reuse these. The portions 260 can be reused if they match 'CopyValue' commands on the working list. If a node under the recycleRoot can be reused, the partial page regenerator 250 converts (step 468) the matching 'CopyValue' command to a 'MoveNode' command, with the source node parameter set to the matching node. The parents and children of the reused node are marked (step 468) as used as they may not also be recycled. The partial page regenerator 250 sets (step 468) a flag to indicate that at least one command in the working list has changed.
The partial page regenerator 250 continues by sorting (step 470) the commands in the working list, placing the 'Assign' commands first, followed by the 'MoveNode' commands. The partial page regenerator 250 removes (step 470) the 'Assign' commands and the 'MoveNode' commands from the working list and appends them to the modification list, ready for transmission to the client node 205. Remaining 'CopyValue' commands are left on the working list.
The partial page regenerator 250 determines (step 475) whether any commands have been changed, by checking to see if a flag was set (step 468). This determination is made because if at least one command has been changed, then it is possible that a previously unreachable node is now reachable. If the flag was set (step 468), the exemplary process loops (arrow 463) back to step 420.
When no more nodes can be recycled, the partial page regenerator 250 converts (step 480) all remaining 'CopyValue' commands to 'CopyNode' commands. These are less efficient than a 'MoveNode' command, but still better than separate 'Assign commands. The source for a 'CopyNode' command is any node that has the correct value. When converting a 'CopyValue' command, the set of nodes related to the value is examined and one node is selected. The only requirement is that this node is one that will be available on the client at the time that the 'CopyNode' command is executed. The requirement can be satisfied by selecting the node with the lowest identification tag as the source node when converting the 'CopyValue' commands, in both step 468 and step 480.
During this conversion, the partial page regenerator 250 renames the copied sub-tree so that the resulting sub-tree contains nodes with unique identifiers. Any means may be used for renaming (e.g., pre-order depth first traversal). The partial page regenerator 250 appends (step 485) the working list, which now contains only 'CopyNode' commands, to the modification list.
In one example, the modification list 284 includes a number of sections. All but the final two sections contain one or more 'Assign commands' followed by one or more 'MoveNode' commands. The penultimate section contains one or more 'Assign' commands followed by zero or more 'MoveNode' commands, and the final section contains zero or more CopyNode commands (e.g., AAM AAAMMM AAA CCC, where A='Assign' command, M='MoveNode' command, C='CopyNode' command and the spaces divide each section).
Then, the partial page regenerator 250 removes (step 490) all nodes left on the recycle list from the page description model node tree 303' for their corresponding values 320. If the value 320 has no remaining corresponding nodes 305 in the page description model node tree 303', then the value 320 is discarded and removed from the current values table 345. The partial page regenerator 250 also removes any event records 360 and keys 330 associated with the discarded values 320. This reflects the commands that will take place on the client node 205. 1.7 Incorporating Updated Portions into the Transmitted Page
Once the output 283 and the modification list 284 have been created, the partial page regenerator 250 transmits the two items through the server transceiver 235, over the network communication channel 215, through the client transceiver 230 to the display alterer 245. The display alterer 245 incorporates the output 283 using the modification list 284.
1.7.1 Using the Modification List
FIG. 10 illustrates an exemplary embodiment of a process by which the display alterer 245 incorporates the updates for portions 260 of the page 240 that have changed, using the modification list 284 that the server node 210 transmitted along with the updated page portions 260. As described above, the modification list 284 consists of a number of sections containing Assign and MoveNode commands, and an optional final section containing only CopyNode commands. The display alterer 245 processes each section of the modification list 284 in turn. The display alterer 245 examines (step 500) the current section of the modification list 284 for 'MoveNode' commands. For each 'MoveNode' command, the display alterer 245 saves (step 505) the source node of the 'MoveNode' command, and any descendent nodes, in the storage buffer 225. The display alterer 245 then examines the current selection of the modification list 284 for 'Assign' commands (step 510). For each 'Assign' command, the display alterer 245 inserts (step 515) the output (e.g., displayable portion 260, actual HTML code) of the 'Assign' command into the portion 260 of the page 240 specified by the destination node of the 'Assign' command.
The display alterer 245 reexamines (step 520) the current section of the modification list 284 for 'MoveNode' commands. For each 'MoveNode' command, the display alterer 245 retrieves (step 530) the appropriate source node temporarily saved (step 505) in the storage buffer 225. The display alterer 245 inserts (step 535) the value of the node, and any descendents, into the portion 260 of the page 240 specified by the destination node of the 'MoveNode' command. The display alterer 245 moves (step 540) to the next section in the modification list 284. If there are no more sections, the process continues at step 565. If the new section does not contain only 'CopyNode' commands, the process continues to step 500.
The display alterer 245 examines (step 550) the current section of the modification list 284 for 'CopyNode' commands. For each 'CopyNode' command, the display alterer 245 copies (step 555) the appropriate source node, and any descendents. The display alterer 245 inserts (step 555) the output of the copied node, and any descendents, into the portion 260 of the page 240 specified by the destination node of the 'CopyNode' command. During this copy process, the display alterer 245 renames (step 560) all of the embedded node identification tags of the copied nodes. In one embodiment, the display alterer 245 performs all of the incorporation on the HTML code (e.g., a copy of the HTML code of the currently displayed page 240 in the storage buffer 225) and when incorporation of all of the updates is complete, the display alterer 245 displays (step 565) the updated page. In another embodiment, the display alterer 245 displays (step 550) each update as that update is incoφorated into the displayed page 240.
1.7.2 An Example of Incorporation
FIGS. 11a, l ib, l ie and l id illustrate an example of the display alterer 245 incoφorating an update into the displayed page 240. In the illustrated example, the portion 260 of the page 240 that the display alterer 245 is updating a table, identified as the node with the identification tag "1". The table (i.e., node "1") is being updated by adding a new element (i.e., child node with the value "Gamma") to the table.
FIG. 1 la illustrates a page description model node tree 303" representing the transmitted page 240 prior to the update. Similar to the example in FIGS. 5a and 5b, the node tree 303" includes a parent node "1" with three children nodes "2", "3", and "4". The child node "2" has a value of "Alpha". The child node "3" has a value of "Beta". The child node "4" has a value of "Delta". FIG. 11a also illustrates the modification list 284" that the partial page regenerator 250 transmitted to the display alterer 245.
The display alterer 245 uses the modification list 284" to incoφorate the changes, following the exemplary process of FIG. 10. The display alterer 245 examines (step 500) the modification list 284" and finds an 'Assign' command. The display alterer 245 also determines (step 500) that there are 'MoveNode' commands associated with the descendents (i.e., child nodes) of the 'Assign' command destination node (i.e., node "1"). As shown if FIG. 1 lb, the modification list 284'" includes implicit actions of saving (step 505) the reusable nodes 603 in the storage buffer 225. Because there is an 'Assign' command for the table, the display alterer 246 removes the descendents of that node to start creating a working version 600 of the page description model node tree 303".
Referring to FIG. l ie, the display alterer 245 inserts (step 515) the output as defined in the 'Assign' command. In this example, the output of the 'Assign' command, though not shown in the modification list 284", is shown in the working version 605 of the page description model node tree 303". Per the 'Assign' command, the new node "1" includes four descendent nodes with the identification tags "5", "6", "7" and "8". The descendent nodes with the identification tags "5", "6" and "8" are empty. The descendent node with the identification tag "7" has the value "Gamma". The display alterer 245 continues by examining (step 520) the modification list 284" for any 'MoveNode' commands. As shown in FIG. 1 lc, there are three move commands. For each 'MoveNode' command, the display alterer 245 retrieves (step 530) the nodes identified as the source node (i.e., 2,3,4) and inserts (step 535) the values (i.e., Alpha, Beta, Delta) into the destination nodes (i.e., 5,6,8). FIG. 1 Id illustrates the page description model node tree 303'" of the updated page 240, now displayed (step 565) on the display 220 of the client node 205.
Although a table of stock prices has been used throughout this description, this invention works equally well with any other kind of content. For example, FIG. 12 is a screenshot of an example of an email page 608 being displayed to a user at the client node 205. A page generation code (not shown) might display a list 610 of messages in an 'inbox' for a particular user. For each message the sender 615, subject 620 and date 625 are shown, together with an indication (not shown) as to whether the message had been read (e.g., displayed in bold). This list 610 also contains links so that if a message were selected, then it would be displayed in full 630. With an embodiment of the partial page regenerator, the displayed list 610 of messages is updated in a number of ways
- When a new message arrives, the message is appended to the list 610, in a similar way "Gamma" was added in FIG. 11, but at the end of the list 610. - - The list 610 is sorted easily by rearranging the children nodes per the sorting criterion.
- When a message is read, its entry in the list 610 is modified to reflect this. The partial page regenerator, to create such a list 610 of messages, would probably mimic the stock price example in structure. The partial page regenerator determines the number of messages, and then executes a loop, outputting a page portion (e.g., html) for each message.
Such an email application might be augmented by a more complex interface, for example listing available folders containing email in a 'tree structure' 635. The partial page regenerator creates this structure 635 by executing one fragment for each 'folder', and either displays a closed folder, or displays an open folder and then recursively calls the same fragment to display the contents of the folders. If the generated output contains OnClick' events for each folder that inform the server node 210 when a folder is selected (ie opened or closed), then the page 608 is automatically updated to show the new state of a folder after a user selected it.
Equivalents
The invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The foregoing embodiments are therefore to be considered in all respects illustrative rather than limiting on the invention described herein. Scope of the invention is thus indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
M1RANDDG1S45/98.2213539
Appendix 1
A worked example of adding a player to an HTML page that can then retrieve and display updates to the page. This demonstration will work with Internet Explorer 5.0
Here is an original page, which has been augmented with a client player (Transceiver 230 and Display Alterer 245). This is shown in grey and labeled ul . The page has also been modified to get updates immediately that it is loaded (this is a simplification). This is shown in grey and labeled u2
Page.html
Figure imgf000044_0001
<span id=l>Alpha</span><br> <span id=2>Beta </span><br> <span id=3>Gamma</span><br> <span id=4>Delta</span><br>
< body> </HTML>
The following code is the contents of 'player.js' that is added to the original page. This is a much simplified client player (Transceiver 230 and Display Alterer 245) which can perform only simple 'ASSIGN' operations. The operation of
this is as follows. When updates are requested, the location of a page containing updates, or server generating a page containing updates is supplied as a uniform resource locator (URL). This is passed to the 'getUpdates' function. This function creates a hidden subpage (frame) that is used as a communications channel to the server. When the server recives the URL request, it responds by supplying a set of updates encoded as a HTML page (example given later). When loaded, this page of updates calls the 'doUpdate' method which in turn applies the update to the original page.
player .is
// retrieve a page containing updates from the specified URL // once this has loaded 'doUpdate' will be called function getUpdates(url) { document.body.insertAdjacentHTMLC'afterBegin", "<IFRAME NAME=_tunnel ID=_tunnel FRAMEBORDER=0 WIDTH=0 HEIGHT=0 STYLE='position:absolute' SRC='"+url+'"x/IFRAME>");
}
// called when updates are available
// Perform the update on the current page. function doUpdate(command,destId,data)
{ if(command=- assign')
{ var dest = document.getElementByld(destld); dest.innerHTML = data;
} else
{ alert("Command "+command+" not understood");
} } The following is an example page of updates. This page would normally be created dynamically by the Server Node (210).
updates.html
// This page contains the following updates, encoded as a HTML page <html> <head> <script> // parent is the containing window (ie the original page) parent.doUpdate('assign',l," A"); parent.doUpdate('assign',3," C"); </script>
</head>
<body>< body> </html>

Claims

What is claimed is:
1. A method for partial page regeneration of a transmitted page by a server, said method comprising: receiving page generation code that generates a page; transmitting said page to a client for display; associating a portion of said transmitted page with a code fragment of said page generation code; and executing said associated code fragment of said code to regenerate said portion of said transmitted page.
2. The method of claim 1 further comprising transmitting said regenerated page portion to said client for incorporation into said transmitted page.
3. The method of claim 1 further comprising manipulating execution of said page generation code to enable selective execution of said associated code fragment.
4. The method of claim 3 wherein the step of manipulating further comprises intercepting communication between said associated code fragment and other parts of said code to enable execution of less than said entire page generation code.
5. The method of claim 3 wherein the step of manipulating further comprises adding additional code to operate with said page generation code to enable selective execution of said associated code fragment.
6. The method of claim 1 wherein the step of associating further comprises: executing a code fragment of said page generation code to generate an output; and identifying with an identification tag said generated output of said executed code fragment to identify which portion of said transmitted page is created by said executed code fragment.
7. The method of claim 6 wherein the step of identifying further comprises inserting said identification tag at the beginning and the ending of said generated output.
8. The method of claim 1 wherein said code is formatted as a servlet.
9. The method of claim 1 wherein said page is formatted as a Hypertext Markup Language (HTML) page.
10. A server for partial page regeneration of a transmitted page, said server comprising: a transceiver in communication with a client; and a partial page regenerator in communication with said transceiver.
11. The server of claim 10 further comprising an external page code source in communication with said partial page regenerator.
12. A server for partial page regeneration of a transmitted page, said server comprising: a transceiver in communication with a client, said transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said transceiver and an external page code source, said partial page regenerator receiving page generation code that generates said page from said external page code source, associating a portion of said page with a code fragment of said page generation code and executing said associated code fragment of said code to regenerate said portion of said transmitted page.
13. The server of claim 12 wherein said external page code source is located on said server.
14. The server of claim 12 wherein said partial page regenerator is further configured to send said regenerated portion to said transceiver for transmission to said client.
15. The server of claim 12 wherein said partial page regenerator is further configured to manipulate execution of said page generation code to enable selective execution of said associated code fragment.
16. The server of claim 15 wherein said partial page regenerator is further configured to intercept communication between said associated code fragment and other parts of said code to enable execution of less than said entire page generation code.
17. The server of claim 15 wherein said partial page regenerator is further configured to add additional code to operate with said page generation code to enable selective execution of said associated code fragment.
18. The server of claim 12 wherein said partial page regenerator is further configured to execute said code fragment to generate an output and insert an identification tag at beginning and ending of said generated output of said executed code fragment to identify which portion of said transmitted page is created by said executed code fragment.
19. The server of claim 18 wherein said partial page regenerator is further configured to store a relationship between said portion of said page and said code fragment of said code that generates said portion.
20. A system for partial page regeneration of a transmitted page, said system comprising: an external page code source; a client comprising: a client transceiver; and a server comprising: a server transceiver in communication with said client transceiver; and a partial page regenerator in communication with said server transceiver and said external page code source.
21. The system of claim 20 wherein said external page code source is located on said server.
22. A system for partial page regeneration of a transmitted page, said system comprising: an external page code source; a client comprising: a client transceiver, said client transceiver receiving said page; and a server comprising: a server transceiver in communication with said client, said server transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said server transceiver and said external page code source, said partial page regenerator receiving from said external page code source page generation code that generates said page, associating a portion of said page with a code fragment of said page generation code and executing said associated code fragment of said code to regenerate said portion of said transmitted page.
23. The system of claim 22 wherein said external page code source is located on said server.
24. The system of claim 23 wherein said partial page regenerator is further configured to send said regenerated portion to said server transceiver for transmission to said client.
25. The system of claim 23 wherein said partial page regenerator is further configured to manipulate execution of said page generation code to enable selective execution of said associated code fragment.
26. The system of claim 26 wherein said partial page regenerator is further configured to intercept communication between said associated code fragment and other parts of said code to enable execution of less than said entire page generation code.
27. The system of claim 26 wherein said partial page regenerator is further configured to add additional code to operate with said page generation code to enable selective execution of said associated code fragment.
28. The system of claim 23 wherein said partial page regenerator is further configured to execute said code fragment to generate an output and insert an identification tag at beginning and ending of said generated output of said executed code fragment to identify which portion of said transmitted page is created by said executed code fragment.
29. The system of claim 29 wherein said partial page regenerator is further configured to store a relationship between said portion of said page and said code fragment of said code that generates said portion.
30. A method for augmenting page generation code for partial page regeneration, said method comprising: receiving page generation code that generates a page; identifying one or more code fragments in said page generation code, each code fragment generating a corresponding portion of said page when said code fragment is executed; and providing additional code to operate with said page generation code to control execution of each code fragment for partial page regeneration.
31. The method of claim 30 wherein the step of identifying further comprises comparing a process of said page generation code to at least one predetermined criterion to determine whether said process qualifies as a code fragment.
32. The method of claim 31 wherein said predetermined criterion includes that said process in said page generation code does not modify a global variable.
33. The method of claim 31 wherein said predetermined criterion includes that said process in said page generation code does not modify data on which another code fragment relies.
34. The method of claim 31 wherein said predetermined criterion includes that said process in said page generation code has a predetermined process signature.
35. The method of claim 34 wherein said predetermined method signature is that a return type of said process is a string.
36. The method of claim 30 wherein said provided additional code includes additional processes uniquely associated with an overall class that represents said page generation code.
37. The method of claim 30 wherein said provided additional code includes additional processes uniquely associated with each identified code fragment to intercept calls to said identified code fragment.
38. The method of claim 30 wherein said provided additional code includes additional processes uniquely associated with a process that retrieves data on which said identified code fragment relies.
39. The method of claim 38 wherein said process that retrieves data on which said identified code fragment relies is a JAVA bean.
40. A server for augmenting page generation code for partial page regeneration, said server comprising: a partial page regenerator in communication with an external page code source for receiving page generation code that generates a page, said partial page regenerator identifying one or more code fragments in said page generation code, each code fragment generating a corresponding portion of said page when executed and providing additional code to operate with said page generation code to control execution of each code fragment for partial page regeneration.
41. The server of claim 40 wherein the partial page regenerator is further configured to compare a process of said page generation code to at least one predetermined criterion to determine whether said process is a code fragment.
42. The server of claim 41 wherein said predetermined criterion includes that said process in said page generation code does not modify a global variable.
43. The server of claim 40 wherein said predetermined criterion includes that said process in said page generation code does not modify data on which another code fragment relies.
44. The server of claim 41 wherein said predetermined criterion includes that said process in said page generation code has a predetermined process signature.
45. The server of claim 44 wherein said predetermined process signature is that a return type of said process is a string.
46. The server of claim 40 wherein said partial page regenerator is further configured to provide additional code that includes additional processes uniquely associated with an overall class that represents said page generation code.
47. The server of claim 40 wherein said partial page regenerator is further configured to provide additional code that includes additional processes uniquely associated with each identified code fragment to intercept calls to said identified code fragment.
48. The server of claim 40 wherein said partial page regenerator is further configured to provide additional code that includes additional processes uniquely associated with a process that retrieves data on which said identified code fragment relies.
49. The server of claim 48 wherein said process that retrieves data on which said identified code fragment relies is a JAVA bean.
50. A method for automatically updating a transmitted page by a server, said method comprising: receiving page generation code that generates a page; transmitting said page to a client for display; associating data with a code fragment of said page generation code; detecting a change in said associated data; and executing said associated code fragment to regenerate at least a portion of said transmitted page.
51. The method of claim 50 further comprising: marking said associated data of said code fragment in response to said change; receiving a client request for said page; and wherein the step of executing comprises executing said code fragment associated with said marked data in response to said client request.
52. The method of claim 51 further comprising: transmitting to said client a protocol interface to control when said client issues said request for said page.
53. The method of claim 51 further comprising receiving periodic requests for said page.
54. The method of claim 52 further comprising modifying a connection time to said client for transmitting said request for said page.
55. The method of claim 50 further comprising transmitting said regenerated page portion to said client.
56. The method of claim 50 further comprising monitoring said associated data.
57. The method of claim 50 wherein said associated data includes a variable upon which said associated code fragment depends.
58. The method of claim 50 wherein said associated data includes input obtained from a user of said client.
59. The method of claim 50 wherein said code is formatted as a servlet.
60. The method of claim 50 wherein said page is formatted as a Hypertext Markup Language (HTML) page.
61. A server for automatically updating a transmitted page, said server comprising: a transceiver in communication with a client; a partial page regenerator in communication with said transceiver; a data source in communication with said partial page regenerator; and a monitor module in communication with said partial page regenerator and said data source.
62. A server for automatically updating a transmitted page, said server comprising: a transceiver in communication with a client, said transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said transceiver, an external page code source and a data source, said partial page regenerator receiving from said external page code source page generation code that generates said page, associating data from said data source with a code fragment of said page generation code, detecting a change in said associated data and executing said associated code fragment to regenerate at least a portion of said transmitted page.
63. The server of claim 62 wherein said partial page regenerator is further configured to mark said associated data of said code fragment in response to said change and to execute said code fragment associated with said indication in response to a request from said client for said page.
64. The server of claim 63 wherein said partial page regenerator is further configured to transmit to said client a protocol interface to control when said client issues a request for said page.
65. The server of claim 62 wherein said partial page regenerator is further configured to modify a connection time for fulfilling said request for said page.
66. The server of claim 62 wherein said partial page regenerator is further configured to send said regenerated page portion to said transceiver for transmission to said client.
67. The server of claim 62 further comprising a monitor module in communication with said partial page regenerator and said data source, said monitor module monitoring said associated data to detect a change and notifying said partial page regenerator of said detected change.
68. The server of claim 62 wherein said associated data includes a variable upon which said associated code fragment depends.
69. The server of claim 62 wherein said associated data includes input obtained from a user of said client.
70. The server of claim 62 wherein said code is formatted as a servlet.
71. The server of claim 62 wherein said page is formatted as a Hypertext Markup Language (HTML) page.
72. A client for automatically updating a transmitted page, said client comprising: a transceiver; and a display alterer in communication with said transceiver.
73. A client for automatically updating a transmitted page, said client comprising: a transceiver, said transceiver receiving said page; and a display alterer in communication with said transceiver, said display alterer receiving a portion of said page and displaying said regenerated page portion on a client display.
74. The client of claim 73 wherein said display alterer is further configured to automatically transmit a change in user input data to a server.
75. The client of claim 73 further comprising a protocol interface in communication with said transceiver, said protocol interface controlling when said client issues a request for said page.
76. The client of claim 75 wherein said protocol interface is further configured to generate a periodic request for said page.
77. The client of claim 75 wherein said protocol interface is further configured to modify a connection time for transmitting said request for said page.
78. A system for automatically updating a transmitted page, said system comprising: a client comprising: a client transceiver; a server comprising: a server transceiver in communication with said client transceiver; and a partial page regenerator in communication with said server transceiver; an external page code source in communication with said partial page regenerator; a data source in communication with said partial page regenerator; and a monitor module in communication with said partial page regenerator and said data source.
79. The system of claim 78 wherein said client further comprises a display alterer.
80. A system for automatically updating a transmitted page, said system comprising: an external page code source; a data source; a client comprising: a client transceiver, said client transceiver receiving said page; and a display alterer in communication with said client transceiver, said display alterer receiving a portion of said page and displaying said regenerated page portion on a client display; and a server comprising: a transceiver in communication with said client, said transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said transceiver, said external page code source and said data source, said partial page regenerator receiving from said external page code source page generation code that generates said page, associating data from said data source with a code fragment of said page generation code, detecting a change in said associated data and executing said associated code fragment to regenerate said regenerated page portion.
81. The system of claim 80 wherein said partial page regenerator of said server is further configured to mark said associated data of said code fragment in response to said change and to execute said code fragment associated with said indication in response to a request from said client for said page.
82. The system of claim 81 wherein said partial page regenerator is further configured to transmit to said client a protocol interface to be executed in said client to control when said client issues a request for said page.
83. The system of claim 82 wherein said partial page regenerator of said server is further configured to modify a connection time for transmitting said page in response to said request for said page.
84. The system of claim 80 wherein said partial page regenerator of said server is further configured to send said regenerated page portion to said transceiver for transmission to said client.
85. The system of claim 80 wherein said server further comprising a protocol interface in communication with said transceiver, said protocol interface controlling when a client issues a request for said page.
86. The system of claim 85 wherein said protocol interface of said client is further configured to generate a periodic request for said page.
87. The system of claim 85 wherein said protocol interface of said server is further configured to modify a connection time for transmitting said page in response to said request for said page.
88. The system of claim 80 further comprising a monitor module in communication with said partial page regenerator and said data source, said monitor module monitoring said associated data to detect a change and notifying said partial page regenerator of said detected change.
89. The system of claim 80 wherein said external page code source is located on said server.
90. The system of claim 80 wherein said data source is located on said server.
91. The system of claim 80 wherein said associated data includes a variable upon which said associated code fragment depends.
92. The system of claim 80 wherein said associated data includes input obtained from a user of said client.
93. The system of claim 92 wherein said display alterer of said client is further configured to automatically transmit a change in user input data to a server.
94. A method for mapping a page to its page generation code for partial page regeneration, said method comprising: receiving page generation code that generates a page; identifying one or more code fragments in said page generation code, each code fragment generating a corresponding portion of said page when executed; generating a map of correspondences between each code fragment and one or more portions of said page that said code fragment generates; and accessing said map to determine which code fragments to execute when regenerating a portion of said page.
95. The method of claim 94 further comprising determining data on which said identified code fragment depends.
96. The method of claim 95 wherein the step of determining further comprises monitoring input of said identified code fragment during execution to determine data on which said executed code fragment depends.
97. The method of claim 95 wherein the step of generating a map further comprises generating, in said map of correspondences, correspondences between said code fragment and said data on which said code fragment depends to generate said portion of said page.
98. The method of claim 97 further comprising: monitoring said data on which said code fragment depends; and generating, in said map of correspondences, an indicator associated with said data to indicate said data has changed.
99. The method of claim 94 further comprising: executing at least one of said code fragments of said page generation code to generate an output; and identifying said generated output of each executed code fragment with a corresponding identification tag to identify which portion of said transmitted page corresponds to said executed code fragment.
100. The method of claim 99 further comprising identifying, in said map of correspondences, said one or more portions of said page that said code fragment generates by said corresponding identification tag.
101. The method of claim 99 wherein the step of generating a map further comprises generating, in said map of correspondences, a page description model of said transmitted page.
102. The method of claim 101 further comprising identifying a node in said page description model corresponding to a portion of said page generated by one of said code fragments.
103. The method of claim 102 further comprising identifying said node by said corresponding identification tag.
104. A server for mapping a page to its page generation code for partial page regeneration, said server comprising: a storage buffer storing a map of correspondences; and a partial page regenerator in communication with an external page code source, said partial page regenerator receiving page generation code that generates said page from said external page code source, identifying one or more code fragments in said page generation code, each code fragment generating a corresponding portion of said page when executed, generating a map of correspondences between each code fragment and one or more portions of said page that said code fragment generates to store in said storage buffer and accessing said map from said storage buffer to determine which code fragments to execute when regenerating a portion of said page.
105. The server of claim 104 wherein said partial page regenerator is further configured to determine data on which said identified code fragment depends.
106. The server of claim 105 wherein said partial page regenerator is further configured to monitor input of said identified code fragment during execution to determine said data on which said identified code fragment depends.
107. The server of claim 105 wherein said map of correspondences stored in said storage buffer includes correspondences between each identified code fragment and data on which said code fragment depends to generate a portion of said page.
108. The server of claim 107 wherein said map of correspondences stored in said storage buffer includes an indicator associated with said data on which said code fragment depends to indicate whether the said data has changed.
109. The server of claim 104 further configured to execute at least one of said code fragments of said page generation code to generate an output and identify said generated output of each executed code fragment with a corresponding identification tag to identify which portion of said transmitted page corresponds to said executed code fragment.
110. The server of claim 109 wherein the partial page regenerator is further configured to generate, in said map of correspondences, a page description model of said transmitted page.
111. The server of claim 110 wherein the partial page regenerator is further configured to identify a node in said page description model corresponding to a portion of said page generated by one of said code fragments.
112. The server of claim 111 wherein the partial page regenerator is further configured to identify said node by said corresponding identification tag.
113. A method for incoφorating a partial page into a transmitted page displayed on a client, said method comprising: displaying said transmitted page on a client; receiving by said client a regenerated portion of said transmitted page from a server; and incoφorating by said client said regenerated portion into said transmitted page displayed on said client.
114. The method of claim 113 further comprising receiving by said client a modification list from said server instructing said client on the incoφoration of said regenerated page portion into said transmitted page.
115. The method of claim 114 further comprising receiving by said client additional code instructing said client on how to inteφret commands contained in said modification list.
116. The method of claim 1 13 further comprising: copying a first portion of said transmitted page displayed on said client; and inserting said copied first portion into a second portion of said transmitted page displayed on said client.
117. The method of claim 116 further comprising changing an identification tag of said copied first portion inserted in said second portion from a first value to a non- identical second value.
118. The method of claim 113 further comprising moving a first portion of said transmitted page to a second portion.
119. The method of claim 118 wherein the step of moving further comprises saving said first portion in a storage buffer.
120. The method of claim 118 wherein the step of moving further comprises moving said first portion of said transmitted page to a second portion within said regenerated portion.
121. The method of claim 118 further comprising changing an identification tag of said moved first portion from a first value to a non-identical second value.
122. The method of claim 113 wherein the step of incoφorating further comprises replacing a portion of said transmitted page with said regenerated portion.
123. A client for incoφorating a partial page into a transmitted page, said client comprising: a transceiver, said transceiver receiving said transmitted page and any partial portions thereof; and a display alterer in communication with said transceiver, said display alterer receiving a regenerated portion of said transmitted page from a server and incoφorating said regenerated page portion into said transmitted page displayed on said client.
124. The client of claim 123 wherein said display alterer is further configured to receive a modification list from said server instructing said client on the incoφoration of said regenerated portion into said transmitted page.
125. The client of claim 123 wherein said display alterer is further configured to receive additional code instructing said client on how to inteφret commands contained in said modification list.
126. The client of claim 123 further comprising a storage buffer in communication with said display alterer, the storage buffer storing a first portion of said transmitted page displayed on said client for use in updating said transmitted page.
127. A system for incoφorating a partial page into a transmitted page, said system comprising: an external page code source; a client comprising: a client transceiver, said client transceiver receiving said page; and a display alterer in communication with said client transceiver, said display alterer receiving a regenerated portion of said transmitted page from a server and incoφorating said regenerated page portion into said transmitted page displayed on said client; and a server comprising: a server transceiver in communication with said client, said server transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said server transceiver and said external page code source, said partial page regenerator receiving from said external page code source page generation code that generates said page and executing an associated code fragment of said code to regenerate a portion of said transmitted page.
128. The system of claim 127 wherein said display alterer of said client is further configured to receive a modification list from said server instructing said client on the incoφoration of said regenerated portion into said transmitted page.
129. The system of claim 127 wherein said display alterer of said client is further configured to receive additional code instructing said client on how to inteφret commands contained in said modification list.
130. The system of claim 127 wherein said client further comprises a storage buffer in communication with said display alterer, the storage buffer storing a first portion of said transmitted page displayed on said client for use in updating said transmitted page.
131. A method for instructing incoφoration of a partial page regeneration into a transmitted page, said method comprising: receiving page generation code that generates a page; transmitting said page to a client for display; executing a code fragment of said code to regenerate a portion of said transmitted page; and determining a modification list comprising at least one command for instructing said client on incoφoration of said regenerated portion into said transmitted page.
132. The method of claim 131 further comprising transmitting said regenerated portion of said transmitted page to said client for incoφoration into said transmitted page.
133. The method of claim 132 further comprising embedding said modification list in said regenerated page portion.
134. The method of claim 132 further comprising transmitting said modification list to said client.
135. The method of claim 131 further comprising determining whether said client has a capability to inteφret said commands of said modification list to incoφorate said regenerated page portion.
136. The method of claim 135 further comprising transmitting to said client additional code in response to determining that said client lacks said capability to inteφret said commands.
137. The method of claim 131 further comprising: identifying a plurality of portions of said transmitted page; and inserting into said transmitted page identification tags corresponding to each portion of said plurality of portions prior to transmitting said page to said client.
138. The method of claim 136 further comprising identifying said regenerated portion of said transmitted page by a corresponding identification tag.
139. The method of claim 136 wherein said modification list includes a reference to said corresponding identification tag.
140. The method of claim 131 wherein said modification list includes at least one of a move command and a copy command and an assign command.
141. A server for instructing incoφoration of a partial page regeneration into a transmitted page, said server comprising: a transceiver in communication with a client, said transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said transceiver and an external page code source, said partial page regenerator executing a code fragment of said code to regenerate a portion of said transmitted page and determining a modification list comprising at least one command for instructing said client on the incoφoration of said regenerated portion into said transmitted page.
142. The server of claim 141 wherein said external page code source is located on said server.
143. The server of claim 141 wherein the partial page regenerator is further configured to embed said modification list in said regenerated page portion.
144. The server of claim 141 wherein the partial page regenerator is further configured to send said modification list to said transceiver to transmit to said client.
145. The server of claim 141 wherein the partial page regenerator is further configured to determine whether said client has a capability to inteφret said commands of said modification list to incoφorate said regenerated page portion.
146. The server of claim 145 wherein the partial page regenerator is further is further configured to send to the transceiver for transmitting to said client additional code in response to determining that said client lacks said .
147. The server of claim 141 wherein the partial page regenerator is further configured to identify a plurality of portions of said transmitted page and insert into said transmitted page identification tags corresponding to each portion of said plurality of portions prior to transmitting said page to said client.
148. The server of claim 147 wherein the partial page regenerator is further configured to identify said regenerated portion of said transmitted page by said corresponding identification tag.
149. The server of claim 148 wherein said modification list includes a reference to said corresponding identification tag.
150. The server of claim 141 wherein said modification list includes at least one of a move command and a copy command and an assign command.
151. A system for instructing incoφoration of a partial page regeneration into a transmitted page, said system comprising: an external page code source a client comprising: a client transceiver, said client transceiver receiving said page; and a display alterer in communication with said client transceiver, said display alterer receiving a regenerated portion of said transmitted page and incoφorating said regenerated portion into said transmitted page displayed on said client, and a server comprising: a server transceiver in communication with said client, said server transceiver transmitting said page to said client for display; and a partial page regenerator in communication with said transceiver and an external page code source, said partial page regenerator executing a code fragment of said code to regenerate a portion of said transmitted page and determining a modification list comprising at least one command for instructing said client on the incoφoration of said regenerated portion into said transmitted page.
152. The system of claim 151 wherein the partial page regenerator of said server is further configured to embed said modification list in said regenerated page portion.
153. The system of claim 151 wherein the partial page regenerator of said server is further configured to send said modification list to said transceiver to transmit to said client.
154. The system of claim 151 wherein the partial page regenerator of said server is further configured to determine whether said client has a capability to inteφret said commands of said modification list to incoφorate said regenerated page portion.
155. The system of claim 154 wherein the partial page regenerator of said server is further is further configured to send to the transceiver for transmitting to said client additional code in response to determining that said client lacks said capability to inteφret said commands.
156. The system of claim 151 wherein the partial page regenerator of said server is further configured to identify a plurality of portions of said transmitted page and insert into said transmitted page identification tags corresponding to each portion of said plurality of portions prior to transmitting said page to said client.
157. The system of claim 156 wherein the partial page regenerator of said server is further configured to identify said regenerated portion of said transmitted page by said corresponding identification tag.
158. The system of claim 157 wherein said modification list includes a reference to said corresponding identification tag.
159. The system of claim 151 wherein said modification list includes at least one of a move command and a copy command and an assign command.
MIRANDDG\1545Λ98.2213539 1
PCT/US2001/045272 2000-11-02 2001-11-02 Methods and apparatus for augmenting page generation code to effect partial page regeneration WO2002063504A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
GB0309650A GB2384346A (en) 2000-11-02 2001-11-02 Methods and apparatus for augmenting page generation code to effect partial page regeneration
JP2002563379A JP2004519040A (en) 2000-11-02 2001-11-02 Method and apparatus for enhancing page generation code affecting partial page regeneration

Applications Claiming Priority (12)

Application Number Priority Date Filing Date Title
US70485700A 2000-11-02 2000-11-02
US70517000A 2000-11-02 2000-11-02
US70489700A 2000-11-02 2000-11-02
US70449800A 2000-11-02 2000-11-02
US09/704,896 US7346842B1 (en) 2000-11-02 2000-11-02 Methods and apparatus for incorporating a partial page on a client
US09/704,498 2000-11-02
US09/705,170 2000-11-02
US09/704,896 2000-11-02
US09/704,904 US7051084B1 (en) 2000-11-02 2000-11-02 Methods and apparatus for regenerating and transmitting a partial page
US09/704,857 2000-11-02
US09/704,897 2000-11-02
US09/704,904 2000-11-02

Publications (2)

Publication Number Publication Date
WO2002063504A2 true WO2002063504A2 (en) 2002-08-15
WO2002063504A3 WO2002063504A3 (en) 2004-04-08

Family

ID=27560241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2001/045272 WO2002063504A2 (en) 2000-11-02 2001-11-02 Methods and apparatus for augmenting page generation code to effect partial page regeneration

Country Status (3)

Country Link
JP (1) JP2004519040A (en)
GB (1) GB2384346A (en)
WO (1) WO2002063504A2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006034754A2 (en) 2004-09-27 2006-04-06 Accenture Global Services Gmbh System for supporting interactive presentations to customers
US7051084B1 (en) * 2000-11-02 2006-05-23 Citrix Systems, Inc. Methods and apparatus for regenerating and transmitting a partial page
EP1738270A2 (en) * 2004-03-15 2007-01-03 Bungee Labs, Inc. Method and apparatus for partial updating of client interfaces
US7171470B2 (en) 2003-02-20 2007-01-30 International Business Machines Corporation Grid service scheduling of related services using heuristics

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3432512B1 (en) * 2006-02-22 2020-11-25 BlackBerry Limited Apparatus, and associated method, for facilitating delivery and processing of push content
JP5251446B2 (en) * 2008-11-17 2013-07-31 富士通株式会社 Data sharing program, data sharing method, and data sharing apparatus
US9239878B2 (en) * 2012-12-19 2016-01-19 Amazon Technologies, Inc. Interactivity analyses of web resources based on reload events

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5859971A (en) * 1996-02-15 1999-01-12 International Business Machines Corp. Differencing client/server communication system for use with CGI forms
US5946697A (en) * 1997-04-22 1999-08-31 Microsoft Corporation Rapid transfer of HTML files
WO1999059087A1 (en) * 1998-05-13 1999-11-18 Bull Hn Information Systems Inc. Method and apparatus for improving code execution performance by using parsed html
EP1016987A2 (en) * 1998-12-29 2000-07-05 Sun Microsystems, Inc. Propagating updates efficiently in hierarchically structured data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021426A (en) * 1997-07-31 2000-02-01 At&T Corp Method and apparatus for dynamic data transfer on a web page
WO1999008182A1 (en) * 1997-08-05 1999-02-18 Lutris Technologies, Inc. Method and apparatus for static and dynamic generation of information on a user interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5859971A (en) * 1996-02-15 1999-01-12 International Business Machines Corp. Differencing client/server communication system for use with CGI forms
US5946697A (en) * 1997-04-22 1999-08-31 Microsoft Corporation Rapid transfer of HTML files
WO1999059087A1 (en) * 1998-05-13 1999-11-18 Bull Hn Information Systems Inc. Method and apparatus for improving code execution performance by using parsed html
EP1016987A2 (en) * 1998-12-29 2000-07-05 Sun Microsystems, Inc. Propagating updates efficiently in hierarchically structured data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHALLENGER J ET AL: "A publishing system for efficiently creating dynamic Web content" INFOCOM 2000. NINETEENTH ANNUAL JOINT CONFERENCE OF THE IEEE COMPUTER AND COMMUNICATIONS SOCIETIES. PROCEEDINGS. IEEE TEL AVIV, ISRAEL 26-30 MARCH 2000, PISCATAWAY, NJ, USA,IEEE, US, 26 March 2000 (2000-03-26), pages 844-853, XP010376174 ISBN: 0-7803-5880-5 *
HAIFENG LIU ET AL: "Model and research issues for refreshing a very large Website" WEB INFORMATION SYSTEMS ENGINEERING, 2000. PROCEEDINGS OF THE FIRST INTERNATIONAL CONFERENCE ON HONG KONG, CHINA 19-21 JUNE 2000, LOS ALAMITOS, CA, USA,IEEE COMPUT. SOC, US, 19 June 2000 (2000-06-19), pages 291-295, XP010521866 ISBN: 0-7695-0577-5 *
SNEED H M ET AL: "A CASE STUDY IN SOFTWARE WRAPPING" PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE. ICSM '98. BETHESDA, MD, NOV. 16 - 20, 1998, INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, LOS ALAMITOS, CA: IEEE COMPUTER SOC, US, vol. CONF. 14, 16 November 1998 (1998-11-16), pages 86-93, XP000868662 ISBN: 0-7803-5255-6 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051084B1 (en) * 2000-11-02 2006-05-23 Citrix Systems, Inc. Methods and apparatus for regenerating and transmitting a partial page
US7171470B2 (en) 2003-02-20 2007-01-30 International Business Machines Corporation Grid service scheduling of related services using heuristics
EP1738270A2 (en) * 2004-03-15 2007-01-03 Bungee Labs, Inc. Method and apparatus for partial updating of client interfaces
EP1738270A4 (en) * 2004-03-15 2009-07-22 Bungee Labs Inc Method and apparatus for partial updating of client interfaces
WO2006034754A2 (en) 2004-09-27 2006-04-06 Accenture Global Services Gmbh System for supporting interactive presentations to customers
EP1805706A1 (en) * 2004-09-27 2007-07-11 Accenture Global Services GmbH System for supporting interactive presentations to customers

Also Published As

Publication number Publication date
GB0309650D0 (en) 2003-06-04
GB2384346A (en) 2003-07-23
JP2004519040A (en) 2004-06-24
WO2002063504A3 (en) 2004-04-08

Similar Documents

Publication Publication Date Title
US7346842B1 (en) Methods and apparatus for incorporating a partial page on a client
US7051084B1 (en) Methods and apparatus for regenerating and transmitting a partial page
US6209029B1 (en) Method and apparatus for accessing data sources in a three tier environment
US6961750B1 (en) Server-side control objects for processing client-side user interface elements
JP3954809B2 (en) Server-side control object state management method
US7415524B2 (en) Postback input handling by server-side control objects
US6990653B1 (en) Server-side code generation from a dynamic web page content file
US8447806B2 (en) Method and apparatus for updating and synchronizing information between a client and a server
US6792607B1 (en) Databinding using server-side control objects
US8650320B1 (en) Integration server supporting multiple receiving channels
US7120897B2 (en) User control objects for providing server-side code generation from a user-defined dynamic web page content file
US8504913B2 (en) Client-side components
US7523158B1 (en) System and method for partial page updates using a proxy element
US20020162093A1 (en) Internationalization compiler and process for localizing server applications
US20030115548A1 (en) Generating class library to represent messages described in a structured language schema
US7305657B2 (en) Web server having function of Java servlet, method for updating Java program and computer program
US7096455B2 (en) Method and system for representing and accessing data for computer software applications
CN101089856A (en) Method for abstracting network data and web reptile system
US20100131585A1 (en) Displaying information in a client/server system
WO2008103565A1 (en) Dispatching client requests to appropriate server-side methods
US7594235B2 (en) Method of executing on a station of a communication network a computer program represented in a markup language
US7328234B1 (en) Agent architecture for triggering remotely initiated data processing operations
US6339839B1 (en) Enabling multiple code generators in a translator-based embedded scripting system
WO2002063504A2 (en) Methods and apparatus for augmenting page generation code to effect partial page regeneration
JP2000112888A (en) Browser operation management device and computer- readable recording medium recording program

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

ENP Entry into the national phase in:

Ref document number: 0309650

Country of ref document: GB

Kind code of ref document: A

Free format text: PCT FILING DATE = 20011102

Format of ref document f/p: F

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2002563379

Country of ref document: JP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase