摘要 |
The invention proposes a solution allowing a web application to generate a response page based on local information of a client. For this purpose, a front-end servlet (receiving a request from the browser of the client) verifies ( 318,360 ) whether the local information is available on the server. If not, a wait page with a command for uploading the local information is generated and sent ( 321 ) to the client, so as to cause the client to transmit ( 327 - 342 ) the local information to a back-end servlet of the server. The wait page self-refreshes ( 348 - 357 ) after a predefined delay; in response thereto, the same front-end servlet verifies whether the local information is ready to use. If the uploading is still in progress, a wait page without the upload command (which self-refreshes after the same delay) is generated and sent ( 363 ) again. Once the uploading has been completed, the front-end servlet can generate and send ( 366 - 372 ) the desired response page based on the up-to-date local information of the client.
|