<%@ page import = "java.sql.*"%>
<%
try{
agenda.DbAccess dbprueba = new agenda.DbAccess();
ResultSet dbrs = dbprueba.execQuery("Select * from tbllogin");
while (dbrs.next()){
out.println(dbrs.getString("username") + " " + dbrs.getString("password"));
}
}catch(Exception E){
System.err.println("Unable to load driver and make connection.");
E.printStackTrace();
}
%>
I also have the mm.mysql-2.0.4-bin.jar in the classpath, but when I call the jsp page the tomcat console return me the error: java.lang.NullPointerException What is wrong??? Can somebody help me???