Link to home
Create AccountLog in
Avatar of supersizeit
supersizeit

asked on

Embed java applet in html code in email, display a picture if the applet is blocked

Hello, I would like to embed a java applet within an HTML page and send it over email.  Specifically the applet calls a streaming video java player. I

In many email clients (such as later versions of Outlook) I get a security warning stating that "Your current security settings prohibit running ActiveX controls".

I would like the following process to happen but have no experience in Java at all:

Is it possible to sign the applet as safe?
If not I would like the applet to run, if the applet can not run I would like an image displayed - I.E. A click here to play this video image.  If it is plain text only I would like a link to a replica web page displayed in its place.

Is this possible or if not what is the next best solution?


 
SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of supersizeit
supersizeit

ASKER

Sorry I forgot to say that the applet calls the code from the internet therefore I should not need to attach the applet? I.E. the .jar and .class files are on the internet.
doubt any mail readers can run an applet, a better approach may be to include a link in your email which points at a page conteining the applet (on a jnlp file if you want to use web start)
I think you can just simply send the HTML page having the Embedded Applet as an Attachment for the mail so that when user opens up the Attachment the file will automatically open it in a web browser where the Applet will start running.

Thank You.
Yes, make sure that the applet is downloadable from a server.
I am going to rephrase the question:

I already can run the java applet embedded in an email.  In some versions of Outlook and other mail clients the new security settings block the applet from running.  One such warning in Outlook XP and 2003 is: Your current security settings prohibit running ActiveX controls".

How I have done this: The email contains embedded html links to images and the applet are loaded from my web server.

What I would like to do: If the applet can not load due to security settings is display an image instead of loading the applet code.  This can then link to a copy of the html page on my web server.

If the mail client only supports plain text then I will just put a link directly to this copy of the web page.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
>> If the applet can not load due to security settings is display an image instead of loading the applet code

That might actually be programming or customization at the mail-client (like Outlook).
Any reason for a C?