Soulinger
|
| Posted: 02/28/2002, 10:56 AM |
|
Dear CodeCharge,
I need to use the following code to make a connection to an Oracle 8i
database using JSP.
<%@ page import = "java.sql.*" %>
<%
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" ,"abc",
"def");
Statement stmt = conn.createStatement ();
%>
<!-- abc and def is the user name and the password that you use to login to
your home's oracle -->
Any ideas on how to use Codecharge to implement the new driver and to do the
page import section? Or is there an easier way to do this? Eventually I will
be running Oracle on a system running on UNIX so i can't use the Microsoft
Driver for Oracle Databases. Any help would be useful. Thanks!
I'd like to thank all CodeCharge programmers and regulars to this newsgroup
who have helped me so graciously during the development of my project. It is
so much appreciated!
Yours,
Soulinger
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/01/2002, 2:40 AM |
|
You can handle custom connection in Modules/Custom connection.
--
Alex
CodeCharge Developer
"Soulinger" <mimaclit69@hotmail.com> wrote in message
news:a5lug2$5fi$1@news.codecharge.com...
> Dear CodeCharge,
>
> I need to use the following code to make a connection to an Oracle 8i
> database using JSP.
>
> <%@ page import = "java.sql.*" %>
> <%
> DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
> Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" ,"abc",
> "def");
> Statement stmt = conn.createStatement ();
> %>
>
> <!-- abc and def is the user name and the password that you use to login
to
> your home's oracle -->
>
>
> Any ideas on how to use Codecharge to implement the new driver and to do
the
> page import section? Or is there an easier way to do this? Eventually I
will
> be running Oracle on a system running on UNIX so i can't use the Microsoft
> Driver for Oracle Databases. Any help would be useful. Thanks!
> I'd like to thank all CodeCharge programmers and regulars to this
newsgroup
> who have helped me so graciously during the development of my project. It
is
> so much appreciated!
>
> Yours,
> Soulinger
>
>
|
|
|
 |
|