users@glassfish.java.net

how to store json data in browser

From: <glassfish_at_javadesktop.org>
Date: Thu, 03 Apr 2008 08:56:14 PST

Hello,

I am writing a major project with glassfish. We are using a lot of restful services and servlets that talk via browser tru json.

Imagine my page loads first, the init method is called in js, and then the dom tree is modified as the user interacts. when the user navigates to a different page within my server, and then hits the back button, the init method in my js executes, and all the data I polled from my server gets destroyed.

how can I overcome this limitation? I guess I could store some data in session object, but that would still consume bandwidth. is there no way to store data inside the browser, like in the window. object?

I realize this is little off topic, but I need some architectural advice - that is glassfish centric.

Best Regards,
seg
[Message sent by forum member 'segfault2007' (segfault2007)]

http://forums.java.net/jive/thread.jspa?messageID=267602