In this tutorial we will see the integration of AngularJS with Spring MVC. We are going to create CRUD application using Spring REST API on server side and AngularJS is encapsulated within JSP file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service.
If you need PHP version http://www.roytuts.com/angularjs-php-rest-crud-example/
If you need Codeigniter version http://www.roytuts.com/angularjs-codeigniter-rest-crud-example/
Continue reading “Spring MVC + AngularJS CRUD Example”
In this example, I will show you how to build a bean validator for
User model object.In my previous example, Spring MVC Custom Validator, I have shown how to validate user input.
Validating input received from the user to maintain data integrity is an important part of application logic.
The Bean Validation model is supported by constraints in the form of annotations placed on a field, method, or class of a JavaBeans component, such as a managed bean.
Constraints can be built in or user defined. User-defined constraints are called custom constraints. Several built-in constraints are available in the javax.validation.constraints package. You can read more on bean validation JavaBeans Validation
Continue reading “Spring MVC Bean Validator”
In this example, I will show you how to build a custom validator for
User model object. This validator is custom implementation of
Spring MVC supports validation by means of a validator object that implements the
Validator interface. I will write the below validator code in this example to check if the required form fields are filled. Continue reading “Spring MVC Custom Validator”
In my previous tutorials I have shown how to create a Spring Boot MVC application, here I will show you how to create an AJAX based Spring Boot MVC application with Tiles.
What is Tiles (https://tiles.apache.org/)
A free open-sourced templating framework for modern Java applications.
Based upon the Composite pattern it is built to simplify the development of user interfaces.
For complex web sites it remains the easiest and most elegant way to work alongside any MVC technology.
In summary, tiles allows authors to define page fragments which can be assembled into a complete pages at runtime. These fragments, or tiles, can be used as simple includes in order to reduce the duplication of common page elements or embedded within other tiles to develop a series of reusable templates. These templates streamline the development of a consistent look and feel across an entire application.
Continue reading “Spring Boot MVC with Tiles and AJAX”