title: How to make fmt:formatDate work for form:input
body: <p>I have a jstl loop and I want to format the date of a form:input. I have tried many permutations of some of the suggestions that I've fond online but I just cannot get it to work.. Can someone please have a look?</p>
  
  <p>I've included the full loop for context but the problem lies in the last <code>&lt;td&gt;&lt;/td&gt;</code> block. </p>
  
  <pre><code>&lt;c:forEach items="${valueTransactionsModel.transactions}" var="transaction" varStatus="loopStatus"&gt;
  
                          &lt;tr class="${loopStatus.index % 2 == 0 ? 'even' : 'odd'}"&gt;
                              &lt;spring:message code="valueTransactions.transactionType" var="transactionTypeLbl" /&gt;
                              &lt;tags:dropdown id="transactionTypeId${loopStatus.index}" path="transactions['${loopStatus.index}'].valueTransactionType.id" 
                                  fieldName="${transactionTypeLbl}" classStyle="mandatory" items="${transactionTypes}" itemLabel="value"/&gt;
                          &lt;/tr&gt;
                          &lt;tr class="${loopStatus.index % 2 == 0 ? 'even' : 'odd'}"&gt;
                              &lt;spring:message code="valueTransactions.transactionAmount" var="valueTransactionAmountLbl${loopStatus.index}" /&gt;
                              &lt;tags:input id="transactionAmountId${loopStatus.index}" 
                                  path="transactions['${loopStatus.index}'].valueTransactionAmount"
                                  fieldName="valueTransactionAmountLbl${loopStatus.index}"
                                  maxlength="30" classStyle="mandatory" /&gt;
                              &lt;spring:message code="valueTransactions.transactionDate"
                                  var="valueTransactionDateLbl${loopStatus.index}" /&gt;
                              &lt;td&gt;
                                  &lt;form:input type="text" path="transactions['${loopStatus.index}'].valueTransactionDate" cssClass="mandatory" value="&lt;fmt:formatDate value="transactions['${loopStatus.index}'].valueTransactionDate"  type="date" pattern="yyyy-MM-dd"/&gt;" /&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt; 
  
  
              &lt;/c:forEach&gt;
  </code></pre>
  
  <p>My most recent issue is:</p>
  
  <p>JSPG0055E: Unable to create an xml attribute from name [transactions[] value [${loopStatus.index}]</p>