SPRING MVC THE VALIDATION OF DATA
FORM VALIDATION Before addressing validation, let's see how we can externalize the labels of our forms to facilitate their internationalization. OUTSOURCE LABELS The more observant will have realized that in the forms we used labels wired directly into the code. As a first step to outsource labels, we need to make configuration-level changes. Let's open the WebApplicationContextConfig.java file and modify it as follows. As you see from the figure below, the Bean does nothing more than configure the message source. The setBasename property sets a text file to be the source. Now we need to create [...]