I have a database with the fields id(number), name(string), address(string). I wrote a java program EmployeeDAO to execute the query. I'm storing it in a ResultSet object "rs". I need to display this result set as a table in a JSP page. How do i send this "rs" to the JSP page? some help?
public class EmployeeDAO {
public _ list() throws Exception {
       try
       {
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
  String url = "jdbc:odbc:employee_dsn";
        Connection con = DriverManager.getConnection(url);
  Statement stmt = con.createStatement();
        ResultSet rs = stmt.executeQuery("Select * from emp_table");
 }
     catch (Exception e)
 { 
            System.out.println(e);
     }
  }