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 Applet to database communication 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 "Applet to database communication" Watch "Applet to database communication" New topic
Author

Applet to database communication

Aravind Ravi
Ranch Hand

Joined: Oct 29, 2000
Posts: 34
Hi,
I have a applet and from the applet i want to transfer values ( which is stored in a array )to a database (oracle or access) or to some file and use it later. How do I do it ? Please help.
Thanks in advance,
Aravind.
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
Well, the database most likely resides on the server so there is a security issue here. Your applet will not be able to directly communicate with the database as that voilates the rules of applet security. To communicate with the database you will need to write a CGI or servlet which resides on the server side to handle input generated from the applet. The applet will send a POST or GET request to the CGI/servlet process the input received from the user.
I would recommend using a servlet using JDBC to do this.
------------------
JFind - Your Java Resource www.jfind.com
 
jQuery in Action, 2nd edition
 
subject: Applet to database communication
 
Similar Threads
Applet upload/download image to/from database via Servlet
connect applet to database?
Applet to database.....How??
Applet Security
Applets and JDBC