<input class="form-control"
type="text"
th:value="${dto.field}" name="field" />
Is it possible to directly convert the input values to upper case? Like pseudocode:
th:value="${#StringUtils.toUpperCase(dto.field)}"
You can access methods from the StringUtils class using the #strings
utility object.
In your case:
th:value="${#strings.toUpperCase(dto.field)}"