title: iterating over list of objects jstl
body: <p>I know this question has been asked previously - <a href="https://stackoverflow.com/questions/8711251/how-to-iterate-a-object-over-a-list-of-objects-in-jstl">How to iterate an object over a list of objects in JSTL?</a>. I tried the suggestions but still no luck.</p>
  
  <p>POJO</p>
  
  <pre><code>public class VwSfuser implements java.io.Serializable {
  private VwSfuserId id;
  private String name;
  private String userid;
  
  public VwSfuser() {
  }
  
  public VwSfuser(VwSfuserId id) {
      this.id = id;
  }
  
  public VwSfuserId getId() {
      return this.id;
  }
  
  public void setId(VwSfuserId id) {
      this.id = id;
  }
  
  public String getName() {
      return name;
  }
  
  public void setName(String name) {
      this.name = name;
  }
  
  public String getUserid() {
      return userid;
  }
  
  public void setUserid(String userid) {
      this.userid = userid;
  }
    }
  </code></pre>
  
  <p>I am passing a List to jsp and trying to access like this:
  JSTL</p>
  
  <pre><code> &lt;c:forEach items="${model.userNameList}" var="list"&gt;        
          &lt;option value="${list.userid}"&gt;${list.name}&lt;/option&gt;
        &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Now, what I get is:</p>
  
  <p>javax.el.PropertyNotFoundException: Property 'userid' not found on type java.lang.String</p>