Java
How To Iterate HashMap in FreeMarker (FTL)
In this short article we will see how to iterate an HashMap in FreeMarker template. Consider below code which is normally used to iterate a List in FTL.//Java List<String> cityList = new ArrayList<String>(); cityList.add("Washington DC"); cityList.add("Delhi"); cityList.add("Berlin"); cityList.add("Paris"); cityList.add("Rome"); request.setAttribute("cityList", cityList); ...0 comments
Batch Insert In Java – JDBC
Let's see how we can perform batch insert in Java using JDBC APIs. Although you might already knew this, I will try to explain the basic ...10 comments
Convert Arrays to Set in Java
Java Collection API is one of the most useful APIs used in any Java application. In my day to day Java coding routine, I have to ...2 comments
More in Java
Spring
Spring MVC: Multiple Row Form Submit using List of Beans

Recently I had a requirement where using Spring MVC we had to take inputs multiple rows of data from user. The form had many rows which user can edit and submit. Spring MVC provides very ...25 comments
Change spring-servlet.xml Filename (Spring Web Contenxt Configuration Filename)
The first thing that we do when we want to implement Spring MVC in our project is to add DispatcherServlets entry in deployment descriptor ...3 comments
Introducing Cache support in Spring 3.1 M1

Spring 3.1 M1 is out with some very useful features. One of the coolest feature in the latest release is comprehensive Caching support!Spring ...2 comments