title: Timestamp to date conversion failure in jsp/jstl
body: <p>I'm trying to convert some timestamp values from a collection to a human readable date format.
  Within a jsp, I've coded this loop:</p>
  
  <pre><code>  &lt;c:forEach items="${tokenCollection}" var="tokenCollection" varStatus="status"&gt;
        &lt;jsp:setProperty name="dateValue" property="time" value="${tokenCollection.value.timestamp}" /&gt;
        &lt;fmt:formatDate value="${dateValue}" pattern="MM/dd/yyyy HH:mm" /&gt; 
        &lt;!-- Correctly prints values as "40aa4ab4-f6c1-458a-9v3d-5d13b872d9c2" --&gt;
        &lt;c:out value="${tokenCollection.value.value}"/&gt;
        &lt;!-- Correctly prints values as "1378722681816" --&gt;
        &lt;c:out value="${tokenCollection.value.timestamp}"/&gt;
    &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Unfortunately, all I get by running it is:</p>
  
  <pre><code>org.apache.jasper.JasperException: An exception occurred processing JSP page /session_management.jsp at line 36
  
  33:       &lt;p&gt;Dati di sessione - utente "&lt;c:out value="${username}" /&gt;"&lt;/p&gt;
  34:       
  35:       &lt;c:forEach items="${tokenCollection}" var="tokenCollection" varStatus="status"&gt;
  36:           &lt;jsp:setProperty name="dateValue" property="time" value="${tokenCollection.value.timestamp}" /&gt;
  37:           &lt;fmt:formatDate value="${dateValue}" pattern="MM/dd/yyyy HH:mm" /&gt;                      
  38:           &lt;c:out value="${tokenCollection.value.value}"/&gt;
  39:           &lt;c:out value="${tokenCollection.value.timestamp}"/&gt;
  
  org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.NumberFormatException: For input string: "${tokenCollection.value.timestamp}"
  </code></pre>
  
  <p>As stated in the comments, values are retreived correctly, so ${tokenCollection.value.timestamp} is by all means a timestamp (like 1378722681816). Still, I can't figure out how to fix this issue, or what exactly I'm being wront at. Any hints?</p>