Tag Archives: example
IOC (Inversion of control) Basics With Example

IOC (Inversion of control) Basics With Example

IOC, one of the most buzzing words in IT. I will describe its clear cut meaning with example in this article.
Formal Definition: IOC is an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to traditional programming.
Before discussing further, let me give you one [...]

Read more

Spring UrlFilenameViewController Example

Hope you guys have enjoyed previous article, MultiActionController Example. Now, let’s move on to UrlFilenameViewController. It transforms the virtual path of a URL into a view name and returns the view, that’s it. It is useful when you don’t need any logical operation on request and simply wants to redirect to some resource. For example, [...]

Read more

Spring MultiActionController Example

MultiActionController is one of the types of Controllers in Spring. It extends AbstractController. (Somewhat similar to DispatchAction in Struts)  Why MultiActionController?: It aggregates multiple request handling methods into single controller, so related functionality can be kept together easily.
NOTE:To reduce complexity, I have added business logic in Controller. Later on I will republish this example as [...]

Read more