title: jsp isn't returning anything, just a blank screen
body: <p>the following jsp code returns just a blank screen on web browser... what to do?</p>
  
  <hr>
  
  <pre><code>&lt;%@page import="java.sql.*"%&gt;
  &lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;GAURAV GOSWAMI&lt;/title&gt;
          &lt;%
              try
              {
                  Class.forName("java.sql.DriverManager");
                  Connection con =(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/quiz","root","");
                  Statement stmt = con.createStatement();
                  String query = "select * from qa";
                  ResultSet rs = stmt.executeQuery(query);
                  while(rs.next())
                  {
          %&gt;
  
          &lt;p&gt;&lt;br&gt;&lt;%rs.getString(0);%&gt;&lt;/p&gt;
          &lt;p&gt;&lt;br&gt;&lt;%rs.getString(1);%&gt;&lt;/p&gt;
          &lt;p&gt;&lt;br&gt;&lt;%rs.getString(2);%&gt;&lt;/p&gt;
          &lt;p&gt;&lt;br&gt;&lt;%rs.getString(3);%&gt;&lt;/p&gt;
          &lt;p&gt;&lt;br&gt;&lt;%rs.getString(4);%&gt;&lt;/p&gt;
  
          &lt;%
                  }
              }
              catch(Exception e)
              {
          %&gt;
  
                  &lt;br&gt;&lt;%e.getMessage();%&gt;
          &lt;%
              }
          %&gt;
  
      &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>