This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Applets  and JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applets  and JDBC" Watch "Applets  and JDBC" New topic
Author

Applets and JDBC

Peter Simard
Ranch Hand

Joined: Oct 31, 2001
Posts: 54
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?


PAS<br />peter@panvox.net<br />2b || !2b
sabbir kazi
Ranch Hand

Joined: Feb 03, 2001
Posts: 62
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

Joined: Jul 12, 2001
Posts: 224
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


Sreenivasa Majji
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Applets and JDBC
 
Similar Threads
WA #1.....word association
Java program protection.
Clock
Clock
Not able to get the context Lookup..Help