hi
i developed a sample application using spring and FreeMarker.
here i have a server side validation to be done. so i used the validator class in spring. ( just to check hte availability of the user name from the database)
when i used that the validation happened( where when i entered a existing user name it return to the form) but i could get the error message displayed there
there are the different variation i tried..
1. <#list spring.status.errorMessages as error>
${error} </#list> - Here the list was empty.
2. <input type="text" name="username" id="username" value="${(user.username)!""}" class="required" />
<@form.errors path="username" cssClass="error"/>
- this did show any output in case of the error though the error have been added as this ---
errors.rejectValue("username", "error.usernameexist", "The username already exsist");---- in the validator class
can any one help me how to output the error message on a FreeMarker
thanks in advance