wood burning stoves*
The moose likes Applets and the fly likes any way to keep applet alive? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "any way to keep applet alive?" Watch "any way to keep applet alive?" New topic
Author

any way to keep applet alive?

verduka fox
Ranch Hand

Joined: Jan 18, 2001
Posts: 178
I have an applet in a jsp that takes a long time (45 seconds or more) to load. At a certain point in the applet, the browser is redirected to another jsp. After finishing with the second jsp, the browser needs to return to the first jsp that has the applet. My question is: is there any way to keep the applet alive from the first time the user visits the first jsp to when the user returns to the first jsp? Or, is there any way to cache the applet so it doesn't have to reload? I need to retain all the values entered in the applet so that when the user returns to the applet it looks the same as when he left it. Performance is a big issue -- the users will not accept that it takes 45 + seconds to reload the applet each time. Is there any way to speed up the loading of the applet? I'm using Swing components, and all the class files are wrapped up in a jar file.
Any help would be very much appreciated!!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Verduka,
Why not just open the second jsp in a new window? Then when the user is done close the window. As long as the back window exists the applet is "alive"... If the second jsp is needed to provide input to the applet... well... that is a harder problem...
HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
verduka fox
Ranch Hand

Joined: Jan 18, 2001
Posts: 178
Nate,
Thanks for your response! I can't open the second jsp in a new window, per business owner rules. I need all of the user interaction to occur in the one browser window.
Any ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: any way to keep applet alive?