Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make my J2EE web application work offline?

I want to make my web application able to work offline and as soon as it becomes online or gets connected again, then it should be able to transfer the modifications made by user in offline mode.

I have seen Google Gears as an ideal solution for my problem, which is not recommended to be used as it is now deprecated.

What is a good way to make my application work offline, both in terms of technology to use and application design?

like image 400
deepmoteria Avatar asked Aug 24 '11 07:08

deepmoteria


People also ask

Can a web app run without Internet?

Offline mode is a functionality that enables web applications to operate when there is no internet connection. If the web application is in online mode and the internet gets disconnected, some of the functionalities of the application will still work.

What allows HTML5 application to work in an offline state?

But HTML5 introduces an application cache mechanism that allows the browser to automatically save the HTML file and all the other resources that needs to display it properly on the local machine, so that the browser can still access the web page and its resources without an internet connection.

What is offline web application?

Offline Web Applications is a Working Group Note produced by the HTML Working Group, part of the HTML Activity. Comments are welcome on the [email protected] mailing list which is publicly archived.


1 Answers

Gears is deprecated because the HTML5 standard allows for equivalent features to be present in compliant browsers.

With respect to your current problem at hand of handling offline web application access, you can look into the support offered by HTML5 for offline web applications via support for client-side SQL database access, and the client-side application HTTP cache.

The features will have to be used in conjunction, as the client-side database access will allow for storage of data (generated when the application is offline) in a structured format, while the offline application cache will allow for caching of HTTP responses from the server; you should not be caching responses that are dynamic in nature which depend on any user-provided inputs.

The details of the proposed APIs can be found in the W3C HTML5 specification, which is in draft at the moment, although it appears that certain user-agents have already implemented this feature.

like image 144
Vineet Reynolds Avatar answered Nov 14 '22 06:11

Vineet Reynolds