[EDIT] CLASS cannot be resolved to a type
-
Hello. I am trying to write small java bean. The classes for java beans compile successfully. When I try to use them in my
.jsp
file I get the errorDatabseDAO cannot be resolved to a type // in the browser
Here are declarations for these beans
// DAO class - in file 1
import java.sql.*;
import java.io.*;
import java.util.*;public class DatabseDAO implements Serializable
{
/// ........... all the code here
}// bean class - in file 2
import java.io.*;public class PersonBean implements Serializable
{
/// ........... all the code here
}And here is how I use them in jsp file
<% DatabseDAO db2 = new DatabseDAO(); ArrayList persons\_list = db2.GetPersons("SELECT \* FROM People"); PersonBean person\_bean = null; for (int i=0; i <% =person\_bean.getPersonId() %> <% =person\_bean.getPersonName() %> <% =person\_bean.getPersonAddress() %> <% } %>
The classes (bean and DAO) are not declared in any package. What is wrong here ?
This world is going to explode due to international politics, SOON.
-
Hello. I am trying to write small java bean. The classes for java beans compile successfully. When I try to use them in my
.jsp
file I get the errorDatabseDAO cannot be resolved to a type // in the browser
Here are declarations for these beans
// DAO class - in file 1
import java.sql.*;
import java.io.*;
import java.util.*;public class DatabseDAO implements Serializable
{
/// ........... all the code here
}// bean class - in file 2
import java.io.*;public class PersonBean implements Serializable
{
/// ........... all the code here
}And here is how I use them in jsp file
<% DatabseDAO db2 = new DatabseDAO(); ArrayList persons\_list = db2.GetPersons("SELECT \* FROM People"); PersonBean person\_bean = null; for (int i=0; i <% =person\_bean.getPersonId() %> <% =person\_bean.getPersonName() %> <% =person\_bean.getPersonAddress() %> <% } %>
The classes (bean and DAO) are not declared in any package. What is wrong here ?
This world is going to explode due to international politics, SOON.
-
Hello. I am trying to write small java bean. The classes for java beans compile successfully. When I try to use them in my
.jsp
file I get the errorDatabseDAO cannot be resolved to a type // in the browser
Here are declarations for these beans
// DAO class - in file 1
import java.sql.*;
import java.io.*;
import java.util.*;public class DatabseDAO implements Serializable
{
/// ........... all the code here
}// bean class - in file 2
import java.io.*;public class PersonBean implements Serializable
{
/// ........... all the code here
}And here is how I use them in jsp file
<% DatabseDAO db2 = new DatabseDAO(); ArrayList persons\_list = db2.GetPersons("SELECT \* FROM People"); PersonBean person\_bean = null; for (int i=0; i <% =person\_bean.getPersonId() %> <% =person\_bean.getPersonName() %> <% =person\_bean.getPersonAddress() %> <% } %>
The classes (bean and DAO) are not declared in any package. What is wrong here ?
This world is going to explode due to international politics, SOON.