title: Populating dropdown in Play framework
body: <p>I am fetching a list of client names from database and I need to populate that list to a drop down in the Play framework. When I do, I am getting an error: <code>not found type name</code>. What am I doing wrong?</p>
  
  <p>my Application.java code is:</p>
  
  <pre><code>package controllers;
  import java.awt.List;
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.ResultSet;
  import java.sql.SQLException;
  import java.sql.Statement;
  
  
  
  import play.mvc.*;
  import play.twirl.api.Content;
  public class Application extends Controller {
  
      static List l = new List();
  
      public static &lt;list&gt; Result index() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException{
          Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();
          Connection conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1433","SUMEET","sumeet");
          System.out.println(conn);
          Statement sta = conn.createStatement();
          String Sql = "select * from client";
          ResultSet rs = sta.executeQuery(Sql);
          while (((ResultSet) rs).next()) {
           String ID= rs.getString("ClientName");
              l.add(ID);
          }
          return ok((Content) l);
  
  
  
        }
  
  }
  </code></pre>
  
  <p>`</p>
  
  <p>and my <code>index.scala.html</code> file is </p>
  
  <blockquote>
  <pre><code>    @import helper._
  @main {
  
  
              @select(
                  options(@message), 
                  '_label -&gt; "Company", '_default -&gt; "-- Choose a company --",
                  '_showConstraints -&gt; false
              )
  
  
  }
  </code></pre>
  </blockquote>