Task Flow- ADF Task Flows is a new feature that will ship with ADF 11g. In simple terms, it is a tool to encapsulate page flow/navigation. A set of ADF Controller activities, control flow rules and managed beans that interact to allow a user to complete a task. It is much more than that in [...]

It is very common to use unique identifiers in web application for identifying unique users or some other usage, till now I was always writing an program using some random generator code for them. It is always hard to do that, as those unique identifiers should not repeat them self in future, else it will [...]

Q: What is a Thread? Ans) In Java, “thread” means two different things: An instance of class java.lang.Thread. A thread of execution. An instance of Thread is just…an object. Like any other object in Java, it has variables and methods, and lives and dies on the heap. But a thread of execution is an individual [...]

The Singleton Pattern Ensure a class only has one instance, and provide a global point of access to it.For example ,if we need a connection to single database at one time  or when ever we are referring to to single application.properties file in struts application for showing application in one language at one time.Then we [...]

1) What is servlet? Ans: Servlets are modules that extend request/response-oriented  servers, such as java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company’s order database. 2) What are the classes and  interfaces for servlets? Ans: There [...]

I gathered information from environment and sharing you this information with all. When Ever you want to call any servlet from another servlet We can use two ways:- A servlet can make an HTTP request of another servlet. Opening a connection to a URL A servlet can call another servlet’s public methods directly, if the [...]

People always define Logger in upper case for not having PMD warning According to SUN code convention only constants should be defined in upper case. Every thing that you define as static and final doesn’t not become constant, but it should immutable too. Logger are not immutable like other primitive types e.g number and String,  Logger [...]

Adapter Design pattern – Structural Patterns Adapter pattern Convert the existing interfaces to a new interface to achieve compatibility and re usability of the unrelated classes in one application. Also known as Wrapper pattern. An adapter allows classes to work together that normally could not because of incompatible interfaces, by providing its interface to clients [...]

We posted earlier how send email using java email api. Here is example of sending email in plain text and html format in same email.

A map is an interface in the java.util package which stores the association between key and its corresponding value. A map cannot contain duplicate keys; each key can map to at most one value Map differs from array in a way that we can store a value at a particular index in arrays but a [...]