• 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

JDBC APPLETS

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am making an online exam applet which will read questions from the database and will have a timer and all, something like the jcp exams. The problem is that browsers dont allow a JDBC ODBC connection because of the sandbox model. Please enlighten me as to how to overcome this problem. Any help will be much appreciated.
Thanx,
Bhaskar.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solution 1. Set up security and sign the applet. Not recommended for general use because a lot of DBMS's use TCP/IP ports that get blocked by firewalls.
Solution 2. Use a 3-tier solution. Do all the JDBC stuff on the server and use a URLConnection to fetch/save data from the applet. Note that this has to be the same server that the applet was loaded from!
 
reply
    Bookmark Topic Watch Topic
  • New Topic