Hi every one,
I am having problem connecting ORACLE through JSP. I am using netBeans IDE, though I am able to connect to ORACLE using ODBC-JDBC bridge drivers and can browse Oracle tables, but when I try it through JSP page it stucks some where.
Note- before I do this I make sure that the Oracle instance is running and Tomacat has started at localhost:8081
Here is little code for JDBC api. ("cprofile" is my Oracle Instance)
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"
;
String url = "jdbc
dbc:cprofile";
Connection con = DriverManager.getConnection(url, "scott", "tiger"
;
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT ENAME,JOB FROM EMP"
;
I am having problem connecting ORACLE through JSP. I am using netBeans IDE, though I am able to connect to ORACLE using ODBC-JDBC bridge drivers and can browse Oracle tables, but when I try it through JSP page it stucks some where.
Note- before I do this I make sure that the Oracle instance is running and Tomacat has started at localhost:8081
Here is little code for JDBC api. ("cprofile" is my Oracle Instance)
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"

String url = "jdbc

Connection con = DriverManager.getConnection(url, "scott", "tiger"

Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT ENAME,JOB FROM EMP"
