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?

[842 byte] By [Reniera] at [2007-10-2 12:56:40]
# 1
Is this cut and pasted?You have:import .jsp.dbControl.ConnectionBean;See the extra period there? Try removing it if it is in your real code.
stevejlukea at 2007-7-13 10:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
no thats not the problem, I just took out my exact package and left the point there by accident, but thats not the problem?
Reniera at 2007-7-13 10:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Just to be sure - you do have such a class either in a jar file in the WEB-INF/lib directory or as .class file in the pathWEB-INF/classes/jsp/dbControl/ConnectionBean.class?ram.
Madathil_Prasada at 2007-7-13 10:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
yes, it is there, i compiled it, and i am already using it for other jsp pages
Reniera at 2007-7-13 10:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Then the only thing left is to make sure you spelled the name correctly, remembering that capitalisation matters.
stevejlukea at 2007-7-13 10:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...