Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to preload a signed applet without user being asked security question?

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When someone visits my web site, they spend a minute or so on the welcome page before proceeding to the applet page.

I've read about preloading applet classes (done in the welcome page) to make the applet load quicker once the user proceeds...

But my classes are in a signed jar, and I want them to be pre-loaded by the welcome page without presenting the user with the security question dialogue.

Is it possible?

Thanks,
James
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that's not possible. The point of signed code is that the user needs to accept the certificate - you can't sneak it into the browser without that. But in that dialog the user has the option to accept the certificate permanently, so that he won't be asked again next time around.
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

What if the browser pre-loads the jar into the its cache on the welcome page? Would that speed things up for the JVM on the applet page, or would the JVM just retrieve the jar again from the server?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case the applet would be cached, unless the user has explicitly turned off the applet jar cache. But that would be an unusual thing to do.

I'm not sure what would happen if the user navigated away from the page before the whole jar was downloaded. The download would probably needed to be restarted.
 
f jimenez
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im actually having the same problem as you. but i am really not concerned with the certificate popup. its ok with me but i just want the applet to preload in another page so that at least when the client browses to the page with the applet, it is already active...

have you solved yours? can you teach me? or can yo tell me what articles made support that this cant be done?

thanks a lot...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic