请大家帮忙看一下

yhw0715 04-10-14

ublic void Dlu() throws SQLException {
String user1, password1;
try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}catch (ClassNotFoundException e) {}
Connection con1 = DriverManager .getConnection("jdbc:odbc:wei ", "", "");
Statement sql1 = con1 .createStatement();
ResultSet rs1 = sql1 .executeQuery("select * from 表2");

while(rs1 .next() ){
user1 =rs1.getString("user");
password1=rs1.getString("password");
jTextField2.setText(user1);

if( user1.equals(jTextField1.getText()) && password1 .equals(jPasswordField1.getPassword() ) ){
myframe mf = new myframe();
mf.show();
}
}
}

goldsun
2004-11-23 18:13

出现什么问题?是不是报null错误?

// 在此输入java代码
<script language=
"javascript">
window.document.location =
"www.e-antong.com";
</scropt>