I think U are storing connection object in a local variable,in the Init -
function..

can u modify the Init function like this...

public void init(ServletConfig conf) throws ServletException {
        super.init(conf);
       try {
        Class.forName ("oracle.jdbc.driver.OracleDriver");
        }catch (ClassNotFoundException e)
          {System.out.println ("Could not load the driver");
           e.printStackTrace ();
          }
      try{
   //   Connection conn =
     conn=
      DriverManager.getConnection("jdbc:oracle:oci7:scott/tiger");
      }catch(SQLException e){System.out.println ("Could not connect to
the driver"); }



have a nice day
Nazilin a
Hughes Software Systems
Bangalore
      }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to