Hi to all,
I'm trying to iterate through the errors collection in a jsp and display all the messages, some of wich may include parameters. Now i'm trying to figure out how to do this with the spring:message tag because it does not seem to resolve those parameters. Ie: If I have this code in a validator:
with a key in message.properties like : form.myError= Revision {0} is invalid. When the jsp executes with the following:Code:errors.reject("form.myError",new Object[]{reo.getRevision()},"");
it prints: Revision {0} is invalid.Code:<c:forEach var="error" items="${errors.allErrors}"> <spring:message code="${error.code}" /> </c:forEach>
How can we resolve the the message *and* the parameters in that loop? Any ideas???
Uze


Reply With Quote
aram value="${arg}"/>