• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing database through JSP

 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had written java program to establish a connection to the database(Oracle 10g) and using it through Swing application.But getting problem with JSP.
I just want to know that how the above java file is used through JSP.
I had already copied the classes12.jar file to ext\lib folder under java directory and also under tomcat dir.

Please help in this regards

thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But getting problem with JSP

What does this mean? If there is an error message, tell us what it is.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had already copied the classes12.jar file to ext\lib folder under java directory and also under tomcat dir.



Putting in in the Java and/or Tomcat directory will not help.
It needs to be in a specific place within either the tomcat directory structure or within your application. Which depends on how you are trying to connect to the database.

Show us your code for connecting to the database and we can point you in the right direction.
 
kelby zorgdrager
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am assuming you get a ClassNotFoundException? if so, the lib\ext should work. remember if you are on windows, there is a jre\lib\ext where the jre is installed and there is another one where the JDK is installed. make sure your JAVA_HOME is set in the catalina.bat to point to the *correct* lib\ext.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic