This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP-database problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP-database problem" Watch "JSP-database problem" New topic
Author

JSP-database problem

Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
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:





Harpreet Singh janda
Ranch Hand

Joined: Jan 14, 2010
Posts: 317

Put oracle driver jar in lib folder of your application.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Error is clearly saying that Driver jar is missing. Try to put Oracle driver library in lib and try again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP-database problem
 
Similar Threads
problem in running a servlet
ERROR with using JDBC to connect to DB2 Express C
Axis2 - WSDL to code
Problem installing Axis
to retreive datas from mysql table in jsp