title: how to access array list in jsp , if i pass bean
body: <p>I am new to JSTL. How can i use JSTL <code>&lt;c:foreach&gt;</code> inside jsp if i pass below sample bean</p>
  
  <pre><code>class B{
      private String value="";
      private ArrayList arrayVals;
      public String getvalue(){
          return value;
      }
      public String getarrayVals(){
          return arrayVals;
      }
  }
  </code></pre>
  
  <p>I will pass Bean "B" only.  I tried like below, but jsp not compiled. Please help me.</p>
  
  <pre><code>&lt;c:forEach items="${B.getarrayVals}" var="book"&gt; 
      &lt;c:out value="{book.title}"/&gt; 
  &lt;/c:forEach&gt;
  </code></pre>