Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

variable undefined

843835Feb 19 2003 — edited Feb 26 2003
I 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;
}"

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2003
Added on Feb 19 2003
7 comments
172 views