Patent ID: 7966367

Claim:
A web application execution method, adaptable for a client to execute a web application on a remote server, comprising: observing a connection status between the client and the remote server; when the connection status is online, processing an online learning process to monitor communication sessions between the client and the remote server to establish a virtual server for providing an offline service; when the connection status is offline, diverting the client to the virtual server to access the offline service, such that the web application is executed without disruption; and when the connection status is reestablished from an offline connection status, processing a synchronization process to synchronize execution states of the web application from the virtual server to the remote server, wherein the online learning process comprises: recording a request initiated by the client, and a response generated by the remote server in response to the request; analyzing the request to obtain one or more request parameters; analyzing the response to obtain a header section and a body section, wherein the header section comprises one or more response parameters, and the body section comprises one or more web resources, structural information and web documents; establishing a resource mapping database, for recording relationships between the request parameters, the response parameters and the body sections; establishing a resource bank for storage of the web resources, the structural information and the web documents; analyzing relationships between multiple requests initiated by the client and relationships between multiple responses generated by the remote server to establish a state machine; and establishing the virtual server based on the resource mapping database, the resource bank, and the state machine.