• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet to database communication

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic