At 07:07 14/04/2000 -0700, you wrote:
>it is done no differently (although i suggest you put
>this code in a javabean).
>
>you load the driver, then you get a connection using
>the url, then you create a statment and execute a
>query..
>


ok. the config seems alright.
 but, don't work fine.

the page stop when found db driver  tag:
<% DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); 
...%>


I try the following file:  *see the result html file below
----------------------------------------------------------------------------
-----------
<%@ page import="java.sql.*,java.util.*" session="false"%>
<html>
<head>
</head>
<body>
<div align="center"><center>
<table border="1" cellpadding="0" cellspacing="0" width="100%"
bgcolor="#FFFFFF">
  <tr>
    <td width="100%"><div align="center"><center><table border="0"
cellpadding="5"
    cellspacing="0" width="100%">
      <tr>
        <td width="50%" valign="top"><table border="0" cellpadding="5"
cellspacing="0"
        width="100%">
          <tr>
            <td width="100%" bgcolor="#BB0000"><font size="2"
color="#FFFFFF"><strong>CFM ORACLE </strong></font></td>
          </tr>
        </table>
        <table border="1" cellpadding="5" cellspacing="0" width="100%">
          <tr>
            <td width="100%">

<%
        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
        //      Class.forName("oracle.jdbc.driver.OracleDriver");
        Connection con =
DriverManager.getConnection("jdbc:oracle:thin@oramed:1521","dba_net","dba_ne
t");
        Statement stmt;
        stmt=con.createStatement();
        ResultSet rs;
%>


<%
                // wherever ...
%>
</td>
          </tr>
        </table>
        <p>&nbsp;</td>
        <td width="25%" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td width="25%" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      <tr>
        <td width="50%" valign="top"></td>
        <td width="50%" colspan="2"></td>
      </tr>
    </table>
    </center></div></td>
  </tr>
</table>
</center></div>
</body>
</html>
----------------------------------------------------------------------------
----------------


html generated:
-----------------------------------------------------------------
<html>
<head>
</title>
</head>

<body>
<div align="center"><center>

<table border="1" cellpadding="0" cellspacing="0" width="100%"
bgcolor="#FFFFFF">
  <tr>
    <td width="100%"><div align="center"><center><table border="0"
cellpadding="5"
    cellspacing="0" width="100%">
      <tr>
        <td width="50%" valign="top"><table border="0" cellpadding="5"
cellspacing="0"
        width="100%">
          <tr>
            <td width="100%" bgcolor="#BB0000"><font size="2"
color="#FFFFFF"><strong>CFM ORACLE </strong></font></td>
          </tr>
        </table>
        <table border="1" cellpadding="5" cellspacing="0" width="100%">
          <tr>
            <td width="100%">
----------------------------------------------------------------------------
---------
_____________________________________________________________________________
Tamer Americo - Conselho Federal de Medicina - CFM
[EMAIL PROTECTED] - ICQ#3221276

"When we are young / Wandering the face of the earth
Wondering what our dreams might be worth / Learning that we're only immortal
For a limited time"
Dreamline - Rush
____________________________________________________________________________
_

Reply via email to