Java Applet

Hi everyone

i have created an applet which connect to an oracle database, i am using netbeans 5.5, it can run if i use netbeans, the problem is when i use html (IE), it does not connect to the database.

This is how my html code looks like

<HTML>

<HEAD>

<TITLE>Applet HTML Page</TITLE>

</HEAD>

<BODY>

<P>

<APPLET codebase="classes" code="cool.class" width=400 height=350 ></APPLET>

</P>

</BODY>

</HTML>

can some one help me,

[580 byte] By [Kwena] at [2007-11-27 4:23:37]
# 1
You shouldn't be connecting to databases from an applet anyway.Applets are also limited to connecting to the host they came from. Is your database on the same host as the applet?
-Kayaman-a at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...
# 2
No, it is not on the same hostThis how i have decleared the path for my database String url = "jdbc:oracle:thin:@10.1.52.28:1520:CLRDEV";
Kwena at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...
# 3

Hi everyone i have created an applet which connect to an oracle database, i am using netbeans 5.5, it can run if i use netbeans, the problem is when i use html (IE), it does not connect to the database. This is how my html code looks like <HTML> <HEAD> <TITLE>Applet HTML Page</TITLE> </HEAD> <BODY>

<APPLET codebase="classes" code="cool.class" width=400 height=350 ></APPLET>

</BODY> </HTML> can some one help me,

Kwena at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...
# 4
You could look at the Java console output and tell us the security exception you probably see. Kayaman already told you.And forget about applet viewer. It means nothing, really.
CeciNEstPasUnProgrammeura at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...
# 5
What i'm actually looking for is for users to be able to access that Applet from thier PCs, they just type in the URL, as i thought using an Applet viewer will be the solution. How can i do this
Kwena at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...
# 6

Due to security reasons, the applet is forbidden to access any client resources like read or write files, use any attached device, and so.

to enable applet to connect to database you have to sign it means make it trusted applet.

for how to sign an applet you can see:

http://java.sun.com/docs/books/tutorial/deployment/jar/signindex.html

Thanks.

Ahmad Elsafty

NourElsaftya at 2007-7-12 9:31:16 > top of Java-index,Java Essentials,Java Programming...