>>> Paresh Gheewala <[EMAIL PROTECTED]> 04-Jan-00 11:27:56 AM >>>
>> try
>> {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");}
>> catch (Exception e){}
>> con=DriverManager.getConnection(url,"",""); Statement
>> s1=con.createStatement(); String qq="INSERT INTO abc
>> VALUES('"+"'"+te1+"','" +te2+"' )";
>> s1.executeUpdate(qq);
>> System.exit(1);
>> System.out.println("INSERTED SUCCESSFULLY " ); s1.close();
>> con.close();
>> } catch(SQLException e)
>> { }
>> finally
>> {
>> try {con.close();
>> }
>> catch (Exception w){}
>> } } }
>There is slight problem in your code.
>Check The lines before
>System.exit(1);
>logically it self imperative that you don't have to
>write code after exit statement.
I would say it is the System.exit(1) that needs to be removed...
Why are you using it? Do you not realise that nothing after that will
work? (ie: the database connection will not be closed and your
println() won't be executed)
Nic Ferrier
___________________________________________________________________________
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