variable undefined
843835Feb 19 2003 — edited Feb 26 2003I am calling a servlet from my jsp page and I'm getting a variable undefined. I don't doubt there's an error there, just not sure how to remedy it.
// error
Undefined variable: fetchAll
fetchAll = (EmployeeBean)i.next();
// error line of the jsp page
fetchAll = (EmployeeBean)i.next();
// the fetchAll() call on the
"public Vector fetchAll() {
try {
Vector list = new Vector();
ResultSet rset;
Statement stmt = conn.createStatement();
rset = stmt.executeQuery("SELECT * FROM vtents");
while (rset.next());
list.add(makeBean(rset));
return list;
}"