title: Populate JSP dropdown with database info
body: <p>I'm trying to populate a JSP dropdown from a database table.</p>
  
  <p>Here's the code that will create the array and fill it with the database info:</p>
  
  <pre><code>// this will create my array 
  public static ArrayList&lt;DropDownBrands&gt; getBrandsMakes() {
      ArrayList&lt;DropDownBrands&gt; arrayBrandsMake = new ArrayList&lt;DropDownBrands&gt;();
      while (rs.next()) {     
          arrayBrandsMake.add(loadOB(rs));
      }
      return arrayBrandsMake;
  }
  
  // this will load my array object
  private static DropDownBrands loadOB(ResultSet rs) throws SQLException {
      DropDownBrands  OB = new DropDownBrands();
      OB.setBrands("BRAN");
      return OB;
  }
  </code></pre>
  
  <p>How do I call that class from my JSP and populate the dropdown?</p>