• Abhijit Ghosh Abhijit Ghosh Posted 54 Articles A java/j2ee developer. Love to share learning experiences on different technologies/frameworks.
    Find me on Facebook Twitter LinkedIn www

Dynamically create image from text using Java Servlet

29,963 views
By Abhijit Ghosh on Sep 15, 2012 8:50:12 AM

This example shows how we can dynamically create an image from a text ('Hello World!') by writing a simple Java Servlet. In the next post, we'll see how this dynamic creation of image can be used to implement custom CAPTCHA validation.

Tags:

How to retain DOCTYPE declaration while saving DOM Document to an XML file

16,871 views
By Abhijit Ghosh on Sep 13, 2012 2:13:01 PM

If we save a DOM Document to an XML file using javax.xml.transform.Transformer, DOCTYPE declaration gets emitted by default. This example shows how we can retain PUBLIC and SYSTEM id of the DOCTYPE declaration for external DTD.

Tags:

Configure GZIP Filter on Jetty 8 for dynamic compression of contents

16,414 views
By Abhijit Ghosh on Sep 10, 2012 2:16:51 AM

Jetty provides Gzip Filter to enable dynamic compression of contents like html, javascript, css etc. Just a servlet filter 'org.eclipse.jetty.servlets.GzipFilter' needs to be configured in web.xml to save bandwidth and speed up your website.

Tags:

Spring 3 Hello World Example / Tutorial using Maven Tool and Eclipse IDE

52,547 views
By Abhijit Ghosh on Sep 2, 2012 3:01:57 PM

This tutorial will help you to write your first Hello World Spring program. We will use Maven tool to generate the project and Eclipse IDE to implement a method which will print 'Hello World!' in the console.

Tags:

Programmatically Start or Stop an Application, deployed in IBM WebSphere Application Server (WAS) using Java Code and ANT script

19,046 views
By Abhijit Ghosh on Aug 17, 2012 12:41:54 PM

This tutorial describes how an application, deployed in IBM WebSphere Application Server (WAS) can be started or stopped programmatically using Java code. The sample java code invokes and executes an ANT script which uses 'wsadmin' scripting tool and the AdminControl object to start / stop the application.

Tags:

Invoke and Execute Hello World Ant Script Programmatically using Java Code

31,804 views
By Abhijit Ghosh on Aug 6, 2012 1:35:28 PM

Apache Ant is an XML-based build tool to automate different tasks like compile, assemble, test source code, building deployment packages and run Java applications. This Hello World example shows how to invoke and run a simple Ant script programmatically using java code.

Tags:

Full Text Hibernate Lucene Search Hello World Example Using Maven and SQLite

55,741 views
By Abhijit Ghosh on Jul 26, 2012 2:22:26 PM

Hibernate Search is a full text search engine built using Apache Lucene framework. Hibernate Search indexes your domain model, keep the index upto date and also performs full text search functionality to fetch matching domain objects. This Hello World example shows how you can setup hibernate search and get your domain objects based on free text search query. In this tutorial we will use Maven tool to build the project, Eclipse IDE to code and SQLite database to save our domain objects.

Tags:

Hibernate Hello World example using Maven build tool and SQLite database

73,342 views
By Abhijit Ghosh on Jul 18, 2012 1:05:40 PM

This tutorial will help you to write an annotation based hibernate java program which will save some records into a database and fetch them all using Hibernate API. We will use Maven tool to build the project, Eclipse IDE to code and SQLite database to save / retrieve records. SQLite is a self-contained, serverless, zero-configuration, transactional SQL database engine. To learn hibernate, following this tutorial you do not have to install any database or SQLite database separately. However to browse the database you can use 'SQLite Manager - Firefox addon' which provides a very nice GUI for SQLite database.

Tags:

How to traverse a folder or directory recursively using Java File API

26,610 views
By Abhijit Ghosh on Jul 16, 2012 12:34:24 PM

This example shows how we can traverse a folder or directory structure using recursive algorithm by writing a small java program using Java File API.

Tags:

Hello World Example of Simple Logging Facade for Java or SLF4J

159,205 views
By Abhijit Ghosh on Jul 15, 2012 10:02:15 PM

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This gives the developer an opportunity to plug-in desired logging framework at deployment time without changing the code.

Tags:

About this 'Hello World' site

This site is mainly developed to share coding and technology learning experiences on java / j2ee based technologies.

Simple tutorials / codes have been shared to learn a new technology. Full source code is also available for download.