• 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 jdbc

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I am trying to make a jdbc connection from an applet. This works fine if it s run using an applet viewer. But when i try to embed the applet in a jsp ,it throws an exception saying "com.mysql.jdbc.driver" cannot be found. I have added the driver in the lib of the web application that i am building. Can anyone guide me on this?


THanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Applets don't use the WEB-INF/lib and WEB-INF/classes directories. You need to put the jar file into a publicly accessible directory (e.g., the one where you keep the other applet class/jar files), and add an archive attribute to the applet tag which specifies the name of the jar file.
reply
    Bookmark Topic Watch Topic
  • New Topic