Monthly Archives: October 2011

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 »

LookupDispatchAction Example

DispatchAction is perfect for using in scenarios where some common data is modified with different actions as we seen in the previous tutorial. But, there is only one problem with this approach of merging common actions in one DispatchAction i.e. …

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 »