JavaBean
I have the following javabean that references another database connection bean.
package jsp.internal.mois;
import java.io.*;
import java.sql.*;
import java.util.Properties;
import .jsp.dbControl.ConnectionBean;
public class moisLoginBean {
public boolean validateLogin() {
ConnectionBean conbean = new ConnectionBean();
conbean.getConnection();
Statement stmt1 = conbean.createStatement();
String sql = "Select * from moisUser";
Resultset result1 = stmt1.executeQuery(sql);
return false;
}
}
when i try to compile, it gives this error >
cannot resolve symbol: class jsp.dbcontrol.ConnectionBean
Statement stmt1 = conbean.createStatement();
Resultset result1 = stmt1.executeQuery(sql)
what am i doing wrong?

