my dog learned polymorphism*
The moose likes Applets and the fly likes How to preload a signed applet without user being asked security question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to preload a signed applet without user being asked security question?" Watch "How to preload a signed applet without user being asked security question?" New topic
Author

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

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
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
Marshal

Joined: Mar 22, 2005
Posts: 41050
    
  43
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.


Ping & DNS - my free Android networking tools app
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
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
Marshal

Joined: Mar 22, 2005
Posts: 41050
    
  43
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

Joined: Mar 14, 2007
Posts: 30
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...


if you can't be the sun, be a star...<br />もし たいように なれないたら ほしに なれ。
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to preload a signed applet without user being asked security question?
 
Similar Threads
Enabling a security manager for a single jar
WebPage can't run applet as signed after another signed applet is disabled
Applet's Security Warning Box
Security question
Preloading applet classes from a signed jar?