• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to connect applet to database

 
Greenhorn
Posts: 2
  • 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
------------------
 
Ranch Hand
Posts: 36
  • 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


 
Greenhorn
Posts: 19
  • 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.
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic