Bonjour,
J'ai créé une base de données PostgreSQL dont je peux interroger les données dans une applet java. La connecxion ainsi que l'interrogation marche trés bien dans un applet viewer. En intégrant mon applet dans une page web, la connexion échoue. Voilà le code que j'utilise:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>3DGIS<Name of Image></title>
</head>
<body>
<applet
code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=500
height=500
archive="
Project.jar,postgresql-8.3-603.jdbc4.jar,
http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://jdbc.postgresql.org/download/postgresql-8.3-604.jdbc4.jar
">
 
<param name="codebase_lookup" value="false">
<param name="subapplet.classname" value="MonApplet">
<param name="subapplet.displayname" value="">
<param name="jnlpNumExtensions" value="1">
<param name="jnlpExtension1" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
 
</applet>
<p><GIS Viewer></p>
</body>
</html>