GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 126 of 184    Print  
Hi
Iam installed oracle9i, when i connect through jsp file. Iam getting below error

javax.servlet.ServletException: oracle.jdbc.OracleDriver

My jsp code is

<%@ page language="java" import="java.sql.*,javax.sql.DataSource" %>
<%!
String name;
String driver="oracle.jdbc.OracleDriver";
String url="jdbc:oracle:thin:@localhost:1521:ora";
String user="system";
String password="manager";
String strQuery="select * from sample";
Connection conn;
Statement st;

%>
y7hhy
<%
//driver
Class.forName(driver);
/*conn=DriverManager.getConnection(url,user,password);
st=conn.createStatement();
ResultSet rst=st.executeQuery(strQuery);
while(rst.next()){
name=rst.getString("Description");

out.println("Check"+name);
}*/
%>

and also i set the classpath & path in environment variables.

pls reply me , very urgent i will be thankfull.

Sathish

  
Total Answers and Comments: 1 Last Update: June 20, 2006     Asked by: sathishVJ 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 20, 2006 08:42:25   #1  
Pankaj Mishra        

RE: HiIam installed oracle9i, when i connect thr...
you put your classes111.jar and classes12.jar in you servler lib folder and then restart your system......u r getting this error cause ur server is not getting you oracle driver ok do it ...
 
Is this answer useful? Yes | No

 Related Questions

Skill/Topic: Programming ConstructsA) None of the above B)  C)    
Latest Answer : isErrorpage attribute ...

Skill/Topic: Programming ConstructsA) Script language declarations, scriplets and expressions. B) JSP standard actions. C) JSP standard directivesD) A portable tag extension mechanism.  
Latest Answer : Script language declarations, scriplets and expressions. ...

Skill/Topic: Programming ConstructsA) B) C) D)  
Latest Answer : 1  2  ...

Skill/Topic: Programming ConstructsA) B) C) D)  
Latest Answer : code fragment valid tags is  scriptlet tag that is because code is directley placed  in the _ jsp service()  ...

Skill/Topic: Programming ConstructsA) None of the above B) content safeC) synchornisedD) thread safe  
Latest Answer : Thread Safe,so that no other request can interrupt. ...

The ________________________ when added to the user session tells us that the session timed out. 
Skill/Topic: Programming ConstructsA) SessionTotalTimeOutIndicator B) SessionTotalTimedoutIndicator C) SessionTimeoutIndicator D) SessionTimedoutIndicator  

Skill/Topic: Programming ConstructsA) jspDestroy()B) jspInit()C) _jspService()D) getParameter() 
Latest Answer : _jspService() ...

Skill/Topic: Programming ConstructsA) jspDestroy()B) jspInit()C) _jspService()D) getParameter() 
Latest Answer : jspDestroy() and jspInit() methods are overridden. ...

The tag %@include file=”.........” % > helps in including the ______ file in the JSP page (Multiple choice)
Skill/Topic: Programming ConstructsA) readOnlyB) dynamicC) staticD) None of the above 

We can restrict the calling of the errorPage in the JSP by setting the value true for the ______ param in the ErrorPage attribute of the Page Directory
Skill/Topic: Programming ConstructsA) isErrorpage 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

Getting Started with Oracle and ODP.NET

ODP NET Developer&rsquo; s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php&quot; document ready function var highlighted
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape