Featured Tutorials, Tips & Tricks

Java XPath Tutorial: How to Parse XML File using XPath in Java

XPath is a language for finding information in an XML file. You can say that XPath is (sort of) SQL for XML files. XPath is used to navigate through elements and attributes in an XML document. You can also use XPath to traverse through an XML file in Java.XPath comes with powerful expressions that can be used to parse an xml document and retrieve ...

Read / Write CSV file in Java

Read / Write CSV file in Java
If you want to work with Comma-separated Files (CSV) in Java, here's a quick API for you.As Java doesn't support parsing of CSV files natively, we have to rely on third party library. Opencsv is one of the best library available for this purpose. It's open source and is shipped ...
Tags: ,

Spring MVC HashMap Form Integration example

Spring MVC HashMap Form Integration example
Spring MVC provides powerful way to manage form inputs. It also provides form validation functionality which is easy to integrate in any application. But other than the normal form bean mapping, recently I had a requirement to map dynamic values like key-value pairs in an HTML form and retrieve the same in Spring Controller. So basically HashMap came to rescue.Let us see how ...

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 ...
Page 1 of 612345...Last »