Home » Archives for Chandan Singh » Page 2

Author Archives: Chandan Singh

Chandan holds a degree in Computer Engineering and is a passionate software programmer. He has good experience in Java/J2EE Web-Application development for Banking and E-Commerce Domains.

Spring MVC Application with Spring Security Example

In one of our past examples, we learned to create a simple Spring MVC web-applciation. In this example we will demonstrate how we can implement Spring-Security to secure our web-application. We shall discuss and demonstrate both Authentication as well as the Authorization aspect of an application’s security. 1. Introduction to Spring Security Security of a web-application revolves around three major ...

Read More »

Second Level Cache in Hibernate Example

In one of the previous examples, we explained how we can configure Spring Data with JPA using Hibernate as the JPA as the underlying vendor. In this example, we will demonstrate how we can use Second Level Cache in Hibernate to optimize application performance and also avoid common pitfalls.             Table Of Contents 1. What ...

Read More »

Spring Data Neo4j example

In this example we shall demonstrate how to integrate Neo4J, a graph based NoSql database with Spring Data. 1. Introduction Neo4j is an open source, graph based NoSQL database developed in Java and Scala. Like traditional relational Databases, Neo4J offers support to ACID properties. The graph based databases find their uses in use cases where the focus is strongly on ...

Read More »

MongoDB Tutorial for Beginners

In this example we will try to understand what is MongoDb and explain the basic operations in the NoSql Database. 1. Introduction MongoDb is a highly scalable, Document based NoSQL Database written in C++. Document based NoSQL databases work on map-like concept of KEY VALUE pairs. The key being uniquely identifiable property like a String, path etc and the value ...

Read More »

iText Merge PDF Example

In the previous example we saw how we can create and add Barcode to the PDF document. In this example we will demonstrate how we can merge multiple PDF Documents into one. We often face a situation where we need to merge some of the PDF Documents in our applications. Itext provides us with a way to merge different PDF ...

Read More »

iText Barcode Example

In the previous example we studied how to generate watermark in the PDF documents using Itext. In this example, we will learn how we can add Barcode to the PDF using Itext. Barcodes are now-a-days omnipresent due to their ease of use and reliability. Barcodes are cost effective, take less time to read and versatile. We will have a look ...

Read More »

iText Watermark Example

In the previous example we learnt how we can convert a HTML document to a PDF Document using the ITEXT library. In this example we will demonstrate how we can add watermark to a PDF Document using Itext. Watermark are usually added to a document to prevent counterfeiting or to mark the name of the maker or the organization, for ...

Read More »

iText HTML to PDF Example

In the previous examples, we have studied about various Itext Classes like PDFTable, PDFStamper,PDFRectangle etc. that help us in creation of the PDF document. In this example, we will demonstrate when we already have a document in HTML format and need to convert it to a PDF Document.               1. Project Set-Up We shall ...

Read More »

iText PDFtable example

In the previous example, we demonstrated the use of PDFStamper class in the IText library. In this example, we will demonstrate how we can use the PDFTable to improve the design of the PDF Document and to customize the Document layout with a tabular structure.                     Let’s start by setting up ...

Read More »

iText PDFstamper Example

In the previous examples we have seen how the PdfReader and Pdfwriter classes in the IText library work. In this example, we will demonstrate the working of another important class, PDFStamper. PDFStamper class is be used to modify existing PDF document by adding extra content to the pages. The extra content are the objects supported by the PdfContentByte. We will ...

Read More »