accessing database through applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: accessing database through applet

  1. #1
    Join Date
    Aug 2003
    Posts
    4

    Question accessing database through applet

    i wann to access mysql database using dsn or dsnless connection....i tried both the options....they work properly when i run them through dos prompt...but when i run applet usinng html through browser...its giving me exception....security access exception.....so
    is anything extra requd when i run applet through browser....or they r having security not to access database.......below i m giving my applet code also...plz give me a help for this....
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2003
    Posts
    86

    Applets

    The problem is that you are trying the connection code on the client pc (when the applets runs). You do not have permission to do so. What you can do is run this code at the server, and get the result to the applet somehow (bet to use http).

    Sharbov.

  3. #3
    Join Date
    Aug 2003
    Posts
    4

    Unhappy access of databse

    Sir,

    as u told me run the code at server end....same solution i was thinking that i will use applet servlet communication...but sir my boss says we dnt wann to go for this complications n there should be sme solution as all web sites using applet r not using applet servlet communication......so any other way is there sir....n i think as our applet is loaded from server only so it should work......

  4. #4
    Join Date
    Mar 2003
    Posts
    834

    Smile

    You'll have to sign the applet to give it special permissions.
    ArchAngel.
    O:-)

  5. #5
    Join Date
    Aug 2003
    Posts
    4
    but sir how to sign applet
    i know sme stpes but not confident abut it.....u can give help to me that how to sign an applet

  6. #6
    Join Date
    Aug 2003
    Posts
    4
    [sir i dnt know how to sign an applet so if psble can u give me a help regarding that...becz i tried that also on my level but bad luck sir...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center