• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

any way to keep applet alive?

 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic