I am running the following code in JSP and I am receiving the error message:
"sun.jdbc.odbc.JdbcOdbcResultSet@1627086 "

String sql1 = "SELECT employeeID, groupPolicyNo FROM employee WHERE employeeID = 9;";
Statement stmtAdmin =con.createStatement();
ResultSet res = stmtAdmin.executeQuery(sql1);
out.println(res);


// the next query finds all the employees who have that group policy no.
String sql2 = "SELECT employeeID, groupPolicyNo FROM employee WHERE groupPolicyNo = "+res+" ;";
Statement stmt =con.createStatement();
ResultSet rs = stmt.executeQuery(sql2);
out.println(rs);

These queries are running perfectly in the database but not on the browser,
Can any one shed some light?