Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting java applet with mysql using JDBC

 
Priya Raja
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a table for a database using mysql. I have a java applet and this applet performs its task by getting the start and end position using text box from the user and the remaining other details for the applet to run is to be obtained from mysql table. Is it possible for applets to retrieve the values from the table and work based on that information? how to do it? kindly give me some suggestions and some useful links..I am a newbie in JDBC.
Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34195
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Priya,
I think this question relates more to applet connections than JDBC so I'm moving it to our applets forum. If I am wrong, someone can move the thread back here to JDBC.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An applet is Java code like any other code, so whatever you can do in a desktop application or a web app, you can do in an applet.

BUT, applets are only allowed to connect to the server where they are hosted. So if the database is not located on the same machine as the web server that hosts the applet itself, this won't work. Unless the applet is signed, about which you can find more information at HowCanAnAppletReadFilesOnTheLocalFileSystem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic