title: JSTL getting values from Object array
body: <p>My action class has an object array like this,</p>
  
  <pre><code>Object[] varCount = (Object[]) countList.get(0); 
  </code></pre>
  
  <p>and my debug shows values for varCount. I put this object array in model as follows:</p>
  
  <pre><code>model.put("varCount ", varCount );
  </code></pre>
  
  <p>and in JSP i iterate as follows:</p>
  
  <pre><code>&lt;c:forEach var="varCount " items="${model.varCount }" varStatus="loop"&gt;
       &lt;tr&gt;
       &lt;td align="center"&gt;&amp;nbsp;&lt;c:out value="${varCount[0]}"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
       &lt;/c:forEach&gt;
  </code></pre>
  
  <p>And i get the foll error:</p>
  
  <pre><code>Wrapped exception:
  javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${varCount [0]}": Unable to find a value for "0" in object of class "java.math.BigDecimal" using operator "[]" (null)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:306)
      at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:16
  </code></pre>
  
  <p>How do I get the values?</p>