Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet to database.....How??

 
anand rk
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
How can i connect Applet to a Database,since i could do it only with an application
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet may or may not be able to connect to the database depending on the constraints placed on the applet by the browser. The actual method is the same as for your application. If you get a security exception then the browser is preventing you from reaching the database. You may want to think about setting up a servlet to act as a proxy for the applet.
 
shashank hiwarkar1
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas,
Let us say I am making my applet trusted, then with this applet how can I connect ot the database, can u explain plz?
shashank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic