title: JSP page not displaying output
body: <p>I want to display ID in my table in access database. My code is running without any error. </p>
  
  <p>But the code does not display anything. Only the white screen in Html page. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;%@page import="java.sql.*" %&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;%
      try
      {
          Connection con = null;
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con=DriverManager.getConnection("jdbc:odbc:AccessDatabase", "", "");
          Statement stmt = con.createStatement();
          String str= "SELECT * FROM emp_table";
          ResultSet rs = stmt.executeQuery(str);
  
      while(rs.next())
      {
  %&gt;
          &lt;%= rs.getInt("ID") %&gt;
  &lt;%
      }
  
      rs.close();
      stmt.close();
      con.close();
  }
      catch(Exception e) 
      {
          System.out.println(e);
      }
  
  %&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>