I am new to Spring validations. Previously i have used Struts validations. For dynamic validations, we will configure in errormessages.properties file like “errors.required={0} is required.” later we will replace {0} with name. Is ther anyway in spring also for doing this. Please help me.
Thanks in advance.
Bellow code snippet may help you.
errormessages.properties
you need to define ResourceBundleMessageSource bean in spring-context.xml.
In bean messageSource Member variable to access messages.
Second argument is array of object to pass.