Featured Tutorials, Tips & Tricks

Spring MVC + FreeMarker (FTL) Integration example

Spring MVC + FreeMarker (FTL) Integration example
Welcome to Freemarker Tutorial Series. In previous post we created Servlet based Hello World Freemarker Template example. We learned few APIs of freemarker and also how to integrate it with Servlet based application. Following are the list of tutorials from Freemarker tutorial series.Today we will create a Spring MVC based application that uses Freemarker FTL as view instead of JSP. This would give you ...

Introduction to FreeMarker Template (FTL)

Introduction to FreeMarker Template (FTL)
FreeMarker is a Java-based template engine focusing on the MVC software architecture. Although it's mostly used for Servlet-based Web Application development, it can be used for any other kind of text output, such as generating CSS, Java source code, etc. Unlike JSP, it is not dependent on the Servlet architecture or on HTTP. Thus it can ...

Spring 3 MVC – Autocomplete with JQuery & JSON example

Spring 3 MVC - Autocomplete with JQuery & JSON example
Let us implement Autocomplete feature in Spring MVC application using JQuery. Autocomplete is a feature you''ll see in almost all good web apps. It allows user to select proper values from a list of items. Adding this feature is recommended if the field has multiple ( > 20 to 25) values.Related: Autocomplete in Java / JSPOur requirement is simple. We will have ...

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 to a bit complex scenarios.In this note, we will see how we can use JDBC APIs like Statement and PreparedStatement to insert data in any database in batches. Also we ...

How To Create QR Codes in Java & Servlet

How To Create QR Codes in Java & Servlet
Nowadays, Quick Response (QR) Codes are becoming more and more useful as they have gone mainstream, thanks to the smart phones. Right from the bus shelter, product packaging, home improvement store, automobile, a lot of internet websites are integrating QR Codes on their pages to let people quickly reach them. With increase in number of users of smart phones day by day, the QR codes ...

Create ZIP Files in JavaScript

Create ZIP Files in JavaScript
Zip is a very useful file type if I must say most used. It is the most used file format for data compression and archiving. There are number utilities available to create/generate Zip file. Also most of the programming languages comes up with API supporting to generate Zip files. I have written a couple of articles ...

Hibernate Inheritance: Table Per Class Hierarchy (Annotation & XML Mapping)

Hibernate Inheritance: Table Per Class Hierarchy (Annotation & XML Mapping)
Welcome to Hibernate Tutorial Series. In previous tutorials we saw how to implement Relationship Mapping in Hibernate. We saw different mapping techniques like One to Many, Many to Many using both Annotations and XML mapping.Today we will see how the Inheritance is managed in Hibernate.You may want to look at previous tutorials. Here is the complete list for you.Introduction to Inheritance in Hibernate Java ...

Spring MVC: Multiple Row Form Submit using List of Beans

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 simple yet elegant way of collecting data from multiple rows from HTML form and store them in List of Beans in Java.Lets look at the requirement first. We have a ...

Introduction to Hibernate framework

Introduction to Hibernate framework
Hibernate was started in 2001 by Gavin King as an alternative to using EJB2-style entity beans. Its mission back then was to simply offer better persistence capabilities than offered by EJB2 by simplifying the complexities and allowing for missing features.Early in 2003, the Hibernate development team began Hibernate2 releases which offered many significant improvements over the first release.JBoss, Inc. (now part of Red Hat) later ...

How to use Dropbox as an SVN repository

How to use Dropbox as an SVN repository
Recently, the popular Cloud based startup Dropbox is getting lot of attention on Internet. It is a free file synchronization/backup service where you can backup, save and share files. Dropbox gives 2 GB of free space to every user where one can save / backup their files.One of the interesting usage of Dropbox can ...
Page 1 of 612345...Last »