Funktionsweise von fmt: formatDate für form: input

Ich habe eine JSTL-Schleife und möchte das Datum eines Formulars formatieren: Eingabe. Ich habe viele Variationen einiger der Vorschläge ausprobiert, die ich online gern gemacht habe, aber ich kann sie einfach nicht zum Laufen bringen. Kann jemand bitte einen Blick darauf werfen?

Ich habe die vollständige Schleife für den Kontext eingefügt, aber das Problem liegt in der letzten<td></td> Block.

<c:forEach items="${valueTransactionsModel.transactions}" var="transaction" varStatus="loopStatus">

                        <tr class="${loopStatus.index % 2 == 0 ? 'even' : 'odd'}">
                            <spring:message code="valueTransactions.transactionType" var="transactionTypeLbl" />
                            <tags:dropdown id="transactionTypeId${loopStatus.index}" path="transactions['${loopStatus.index}'].valueTransactionType.id" 
                                fieldName="${transactionTypeLbl}" classStyle="mandatory" items="${transactionTypes}" itemLabel="value"/>
                        </tr>
                        <tr class="${loopStatus.index % 2 == 0 ? 'even' : 'odd'}">
                            <spring:message code="valueTransactions.transactionAmount" var="valueTransactionAmountLbl${loopStatus.index}" />
                            <tags:input id="transactionAmountId${loopStatus.index}" 
                                path="transactions['${loopStatus.index}'].valueTransactionAmount"
                                fieldName="valueTransactionAmountLbl${loopStatus.index}"
                                maxlength="30" classStyle="mandatory" />
                            <spring:message code="valueTransactions.transactionDate"
                                var="valueTransactionDateLbl${loopStatus.index}" />
                            <td>
                                <form:input type="text" path="transactions['${loopStatus.index}'].valueTransactionDate" cssClass="mandatory" value="<fmt:formatDate value="transactions['${loopStatus.index}'].valueTransactionDate"  type="date" pattern="yyyy-MM-dd"/>" />
                            </td>
                        </tr> 


            </c:forEach>

Meine letzte Ausgabe ist:

JSPG0055E: Ein XML-Attribut kann nicht aus Name [Transaktionen [] Wert [$ {loopStatus.index}] erstellt werden.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage