title: Populate Dropdown list from Using Spring,Hibernate
body: <p>Experts,</p>
  
  <pre><code>Class EmployeeEntity
      {
          id
          Fname
          Salary
          Phone
      }
  </code></pre>
  
  <p><strong>Controller.java</strong></p>
  
  <pre><code>@RequestMapping(value = "/list")
  public String listEmployee(ModelAndView map)
  {
  
      map.addObject("employee", employeeManager.getEmp());
  
      return "emp";
  
  
  }
  </code></pre>
  
  <p><strong>EmployeeDAO.java</strong></p>
  
  <pre><code>@Override
  public List&lt;EmployeeEntity&gt; getEmp() {
      return this.sessionFactory.getCurrentSession().createQuery("select e.id, e.firstname from EmployeeEntity e").list();
  }
  </code></pre>
  
  <p><strong>emp.jsp</strong></p>
  
  <pre><code>&lt;form:form method="POST"&gt;
  
   &lt;form:select path="Fname"&gt;
      &lt;form:options items="${employee}" /&gt;
  &lt;/form:select&gt;
  
  &lt;/form:form&gt;
  </code></pre>
  
  <p>This are my files. I am not geting values in drropdown.Please help me How to find out problem. I need to populate list with Fname ,and Id as value in list</p>
  
  <p>Error</p>
  
  <pre><code>java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute
      org.springframework.web.servlet.support.BindStatus.&lt;init&gt;(BindStatus.java:141)
  </code></pre>