Results 1 to 2 of 2

Thread: Java Applets

  1. #1
    kevinnrobert is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default Java Applets

    Hi everyone
    :
    : I have created a Java Applet Program, which connect to an Oracle
    : database, it can run without any probem, but the problem arises when
    : i want to run an HTML (IE)file, the applet gets downloaded to the
    : page but it does not connect to the database, Can some one please
    : help me as i want to put it on a server so that everyone can use it.
    :
    Don't directly connect to a database from the client. That is a security disaster in waiting, especially, but not only, if the DB has admin privileges. Instead write a small server or app in a web server to take requests from the client, then that server filters the request, connects to the database and returns the specified data.

    The database probably only accepts connections from loopback, which for simple web server setups is the way to go.

    Unless the applet is signed, it can only make a network connection back to the same IP address.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

Similar Threads

  1. Java Launcher and Applets
    By Bomber_Will in forum Java Applets
    Replies: 2
    Last Post: 01-15-2010, 01:41 AM
  2. Game using Java Applets
    By SecurityCop in forum Java Applets
    Replies: 7
    Last Post: 11-27-2009, 11:34 PM
  3. reading dir in java applets
    By willemjav in forum Java Applets
    Replies: 3
    Last Post: 02-07-2008, 01:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •