Tag Archives: Spring

Spring MVC 3 CRUD example with MyBatis 3

In this tutorial series, we will go through a journey of learning stuffs that will make us comfortable with integrating MyBatis 3 and Spring MVC 3 to perform a CRUD operation on database. Example Project description: We have a domain …

Read more »

Spring MVC 3 controller for performing CRUD operation using MyBatis(iBatis) 3

Till now we have created CRUD database service for the domain class “User” and alsointegratedMyBatis configuration with Spring Configuration file. Next, we will create an web page using Spring MVC to use MyBatis CRUD service to perform operations to database. …

Read more »

Ajax Form Validation using Spring MVC and JQuery

In this tutorial, we will see how to validate a form on server side using Ajax with Spring MVC and JQuery. Spring MVC provides a veryconvenientprocess for adoption of Ajax with annotation driven configuration. We will use this annotation driven …

Read more »

Integrating MyBatis 3 and Spring frameworks – Part 2

MyBatis 3 is very powerful SQL mapping framework with automatic database access class generation using a proxy implementation of the services defined by users. We get realize it’s true power if you integrate MyBatis 3 with Spring framework and …

Read more »

Theme Resolver Example in Spring MVC with annotation configuration (Spring 3.x)

Previous tutorial make us understand, the way to implement theme resolver in Spring MVC application with xml configuration. But, what if we do working with annotations? In this tutorial we will learn the implementation of spring theme resolver in annotation …

Read more »

Theme Resolver Example in Spring MVC with xml configuration (Spring 2.5)

Spring MVC provides us an easy and convenient way to choice themes on run time. The main concept behind this is that the look and feel of the data in a jsp page are depends upon twp types on scripts …

Read more »

Setting Set Collection Values in Spring IoC

We have learn how to set collection of type Map and List in Spring IoC. Now, in this example we will see to put Set collection values to Spring IoC bean property using Spring IoC configuration file. We will use …

Read more »

Setting Map Collection Values in Spring IoC

Previous tutorial illustrates us how to set List Collection value using Spring IoC configuration file. In this tutorial, we will learn how to set Map Collection values using Spring IoC Container Configuration file. Our bean will contain a reference of …

Read more »

Setting List Collection Values in Spring IoC

We have seen the process of setting class instances and primitive type values using Spring IoC, but can we provide a particular list of values to a bean in the form of List instance? Yes, we can. We can provide …

Read more »

Spring MVC SimpleUrlHandlerMapping example

Spring MVC also provides SimpleUrlHandlerMapping that also can be used to map urls to controller beans as we do with BeanNameUrlHandlerMapping. You may ask a question that “Why we need another url handler when we already have BeanNameUrlHandlerMapping?”. As you …

Read more »

Spring MVC BeanNameUrlHandlerMapping Example

Spring MVC library provides some in build url handlers in mvc jars which can be used to pass the control to the controller class in respect of a particular url. When users hit an url on browser, the request will …

Read more »

Using factory class to instantiate Spring IoC beans

Previous tutorial illustrate the way in which we can specify the factory method of a bean which will be used by Spring IoC container to create instance of the bean. Spring IoC also provides facility to specify a factory class …

Read more »

Using self contain factory method to instantiate Spring IoC beans

Spring IoC provides a lot of options using which we can handle dependency injection. It also provided facility to define factory method of a bean that will be used to get instance of a bean. The factory method can be …

Read more »

Using initialization method to initialize a Spring IoC Bean

With the previous tutorial, you know the process of registering a bean class with Spring IoC container using xml configuration files. In this tutorial we will see how to define an initialization method of bean to Spring IoC, so that …

Read more »

File upload using Spring MVC and annotation configuration

Spring MVC does special care to upload file to server. It makes file upload an easy work for web application developers. Spring MVC library jar provides CommonsMultipartResolver class that makes special care to form submitted using “multipart/form-data” encode type. We …

Read more »