Validating a web form
The option of using pure HTML, sometimes with a touch of CSS, to complement Java Script form validation was until recently unthinkable.Sure there have been all kinds of whacky plug-ins over the years aimed at achieving this, but never a single standard that we could work towards.You can use any build system you like when building apps with Spring, but the code you need to work with Maven is included here. Or you can build a single executable JAR file that contains all the necessary dependencies, classes, and resources, and run that.If you’re not familiar with Maven, refer to Building Java Projects with Maven. This makes it easy to ship, version, and deploy the service as an application throughout the development lifecycle, across different environments, and so forth.Fortunately, we can assume that all browsers supporting HTML5 form validation techniques will also support images being replaced in the CSS by 'Base64 encoded datasets'. When you select a "tel" or "email" field on your mobile browser, it could open your address book for you to pick a phone number or address from.
Obviously neither example is very limiting, but it will prevent people from entering completely wrong values, such as phone number, strings with multiple '@'s or spaces.You’ll build a simple Spring MVC application that take user input and checks the input using standard validation annotations.