File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect applet to database

 
srirag
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to form tree structure using siwng ONLY in applet data has tocome from database
------------------
 
prashant komaragiri
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think u cannot directly connect an applet to the database. u might have to use a servlet in between.
prashant
Originally posted by srirag:
i have to form tree structure using siwng ONLY in applet data has tocome from database

 
Ahsan Hadi
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to connect to database from your applet using JDBC, and form the tree by looping through the resultset from a sql query.
If you need to see an example, i can share one.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Syed Ahsan:
You should be able to connect to database from your applet using JDBC, and form the tree by looping through the resultset from a sql query.
If you need to see an example, i can share one.
Just to expand a little on the above answer, there are security steps that you need to do before you can connect to the database via an applet( search for "signing applet" or "policy file" ). It is generally recommended that you use a servlet instead as it has many benefits over using only an applet.
Jamie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic