Results 1 to 5 of 5
  1. #1
    nikosdi is offline Member
    Join Date
    May 2011
    Posts
    7
    Rep Power
    0

    Default Webapplication and applet communication with database

    Hello to the forum... this is my first post!
    I have created a web application which stores some statistical data in the database.Now i need to create an applet to represent these.The problem is that the applet runs on client machine and i want to avoid providing the applet the rights to communicate with the database.Is there is a way to pass an Object to the applet with all the neccessary information?Which is the best way to make the applet communicate with the database....... ?


    //A final thought was to create a servlet which sends the ResultSet with URLConnection ....
    Last edited by nikosdi; 05-30-2011 at 04:24 PM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,329
    Rep Power
    25

    Default

    Sounds like you need some code on the server to do the DB stuff which the applet can communicate with.
    A servlet might help there

  3. #3
    nikosdi is offline Member
    Join Date
    May 2011
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Sounds like you need some code on the server to do the DB stuff which the applet can communicate with.
    A servlet might help there
    You mean a servlet to get the ResultSet and then return it to the applet?I am a bit afraid of this because it might be insecure(Maybe i am wrong so feel free to correct me!).I also thought of creating a web service returning the ResultSet but i am still unfamiliar with services!

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,329
    Rep Power
    25

    Default

    I also am unfamiliar with services

  5. #5
    nikosdi is offline Member
    Join Date
    May 2011
    Posts
    7
    Rep Power
    0

Similar Threads

  1. Replies: 12
    Last Post: 06-18-2011, 04:38 PM
  2. Replies: 0
    Last Post: 04-23-2011, 05:15 PM
  3. Java Applet to Applet communication
    By jsman in forum Java Applets
    Replies: 3
    Last Post: 04-05-2011, 02:23 PM
  4. applet servlet communication
    By viswamadhavi in forum Java Applets
    Replies: 0
    Last Post: 04-06-2009, 01:12 PM
  5. applet servlet communication
    By hardc0d3r in forum Java Applets
    Replies: 1
    Last Post: 07-12-2007, 06:58 PM

Posting Permissions

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