Custom Tag Libraries and Tag Files in JSP 2.0


With previous versions of JSP developing custom tag libraries was possible only by writing Java classes. As a result knowledge of Java was a must. JSP 2.0 introduces a new way of developing custom tag library using plain JSP. This enables JSP developers, who dont know Java, to develop custom tag libraries as Tag files. […]

Error Pages in JSP 2.0


We can configure error pages in jsp and servlets to direct the control to a custom error page, showing a friendly error message to the user when an exception is thrown in the page. But tracking or logging the exception information is not very easy in JSP 1.2. also read: Java EE Tutorials Servlets Interview […]

New Features in Java 7.0 – Part 1


This article discusses the new features that are available in Java 7.0. Java 7.0 comes with bunch of new features – language level changes as well as API level changes and this article concentrates on the new API features such as Cache API, New Date and Time API and New IO 2 as well as […]

Ternary Operator in JSP 2.0 Expression Language(EL)


A very common need in a JSP page is to include a piece of template text only if a certain condition is true. With JSP 1.2 and JSTL 1.1, this is typically done using a block, but that’s a very verbose solution. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 […]

Annotations and Dependency Injection in EJB 3.0


This Article presents two important new features of EJB 3.0 which is bundled with Java EE 5.0 specification, which are Annotations and Dependency Injection. The solid reason for this article is , it will give us an idea how these features are used, so on their encounter in other articles of EJB3.0, we can understand […]

Aspect Oriented Programming (AOP) in Spring 2.5


This article publishes the book excerpt from the book Spring 2.5 Aspect Oriented Programming by Massimiliano Dessi.The following are the list of chapters in the book and brief description inside each chapters. If you are interested in receiving the future articles on book reviews and latest news on Java, please subscribe here. Chapter 1 introduces […]

Volatile keyword in Java


This tips explains the use of volatile keyword in Java. The keyword volatile is used in the multithreaded environment. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Local Variables in the Thread If you are working with the multithreaded programming, the volatile keyword will be more useful. When multiple […]

Working with arrays : java.util.Arrays class


The java.util.Arrays class is basically a set of static methods that are all useful for working with arrays. The Arrays class contains various methods for manipulating arrays (such as sorting and searching). In addition to that, it has got many utility methods for using with arrays such as a method for viewing arrays as lists […]

How to use Enum in Switch?


Enums introduced in Java 5.0 (Read: New features in Java 5.0) allows switching to be done based on the enums values. It is one of the greatest new features introduced from the version 5.0. Prior to Java 1.4, switch only worked with int, short, char, and byte values. However, since enums have a finite set of […]

Adding methods to an Enum


Enums introduced in Java 5.0 are just compiled java classes with some extra behavior. So you can basically do whatever you can in a normal java class inside an enum as well. That includes adding methods , class level variables and constructors to an enum. Adding methods to an enum works just like adding methods […]