executing java applets

hello,

i am a newbie to applets. My problem is this. i have an applet which is essentially a coloring tool. i need to run the applet on clicking say a "Color" link on a html page.

If i just specify the path to the index.html file in the applet folder, the applet aint executing. How can i get the applet executing on the click of a link?

[357 byte] By [auburnedrizzlea] at [2007-10-3 9:22:11]
# 1
http://java.sun.com/docs/books/tutorial/deployment/applet/deployindex.html
zadoka at 2007-7-15 4:35:47 > top of Java-index,Desktop,Core GUI APIs...
# 2

hello,

i am sorry, but there still seems to a problem. The thing is now, i have successfully embedded the applet in a jsp code and i got the browser to recognize the applet. But then when the page loads, the loading of the applet fails.

I am using Eclipse. My jsp file is stored inside Web Content and my applet class is inside /build/classes/HelloWorldApplet. I am calling the applet from the jsp like this:

<html>

<head>

<title>Insert title here</title>

</head>

<XBODY>

<jsp:plugin type="applet" code="/sample/HelloWorldApplet.class" width="160" height="150" >

<jsp:fallback>

I am Generated If There is any Problem like

Plugin tag not supported by browser.

</jsp:fallback>

</jsp:plugin>

</XBODY>

</html>

What could be my problem? Please help! Thanks in advance.

auburnedrizzlea at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 3
Waht does the java console say on the browser?
paulcwa at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 4
By the way how do you know that the browser has recognized the applet?
paulcwa at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 5
well, atleast theres an image with a cross on it. i was thinking that it was sign of applet recognition! the browser shows nothing but this. and the task bar says, 'loading applet failed.'
auburnedrizzlea at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 6
It means that the browser recognized the applet HTML tag, but nothing more.What does the Java console say? Did you check it? Are you aware that it exists?
paulcwa at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 7
i am aware of it, but it dosent say anything. just the server details. no exceptions listed out. nor the error message listed in code.thanks.
auburnedrizzlea at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...
# 8
I find that hard to believe. I've never seen an applet die without something in the console.
paulcwa at 2007-7-15 4:35:48 > top of Java-index,Desktop,Core GUI APIs...