This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applets and JDBC

 
Peter Simard
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May an applet query a database? If an applet may never access the disk is it not then disallowed for an applet to do this? Especially a web-based applet?
 
sabbir kazi
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI, all applets are web-based, otherwise they would be called 'Applications'. Anyway, applets can query a database using JDBC in several ways. One of the common practices is :
Applet ----> Servlet ---JDBC--> DB
There are several books and articles explain this mechanism with good examples.
Sabbir
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Simard:
May an applet query a database? If an applet may never access the disk is it not then disallowed for an applet to do this? Especially a web-based applet?

Applets can't access client/user disk. If they are signed, they ask the user permission before accessing any resource. All unsigned applets cable to talk only the server where they are resided.
------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic