Flow of Control in Struts Framework

Step 1: ActionServlet.service() Struts framework uses a Front Controller Pattern. The ActionServlet defined in the web.xml plays the role of [...]

Read Full Post

robots.txt and sitemap.xml file

robots.txt file The robots.txt file is used to control the crawling of the search engines or the crawlers to your [...]

Read Full Post

Types of Factory Method Pattern

Factory Method Pattern

The Factory Method Pattern can of following six types: Type 1: Creator class is an abstract class and does not [...]

Read Full Post

Difference between Abstract Factory Pattern and Builder Pattern

Abstract Factory Pattern

Abstract Factory Pattern: Abstract Factory Pattern provides an interface for creating families of related or dependent objects without specifying their [...]

Read Full Post

Getting Started with Hibernate

Step 1: Open Eclipse -> File -> New -> Other -> Java Project Step 2: Enter project name “HibernateConsole”, click [...]

Read Full Post

Preparing for Interview

Preparing for an interview is a process that involves some hard work although there are geniuses who can crack it [...]

Read Full Post

Getting Started with Ant

ant

Step 1: Create directory “Ant” in C:\ drive, create directory “C:\Ant\src”, and copy the HelloWorld.java there package com; import java.util.Date; [...]

Read Full Post

How to Delete a Windows Service?

cmd

Step 1: Open services from Start –> Run –> services.msc, and check that the service is present there Step 2: [...]

Read Full Post

Displaying XML with CSS

I was generating the sitemap.xml for javaadmin.com as it is required for google and other bots. The stylist design of [...]

Read Full Post

Custom Serialization

private void writeObject(ObjectOutputStream os) { } private void readObject(ObjectInputStream is) { } If the serializable class has the above methods [...]

Read Full Post