Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP-database problem  RSS feed

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
THANK YOU FOR YOUR TIME.



The CLASSPATH which i set is : C:\Program Files\Tomcat 5.5\common\lib\servlet-api.jar;C:\ORACLE\product\10.2.0\client_1\jdbc\lib\classes12.jar;C:\Program Files\Tomcat 5.5\common\lib\ojdbc14.jar;C:\Program Files\Java\jdk1.6.0_18\bin;

I installed ORACLE CLIENT10g for accessing a network database.


THE ABOVE CODE WORK FINE. I AM ABLE TO GET DATA ,,, BUT WHEN I USED THAT CODE IN JSP AM UNABLE TO CONNECT TO DB.

MY JSP CODE


AM GETTING THIS ERROR:





 
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put oracle driver jar in lib folder of your application.
 
Author and ninkuma
Marshal
Posts: 66681
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will find the caps lock key on your keyboard, most probably to the left of the A key. Please turn it off!

Read this: KeepItDown
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error is clearly saying that Driver jar is missing. Try to put Oracle driver library in lib and try again.
 
Did you just should on me? You should read this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!