• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

any way to keep applet alive?

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic