JavaScript Singleton Design Pattern

JavaScript Singleton Design Pattern

JavaScript Singleton pattern ensure that only a single instance of the class may exits in application. Details of singleton design pattern can be found in the an existing post named Java Singleton Design Pattern...

JavaScript Module Design Pattern

JavaScript Module Design Pattern

JavaScript Module pattern provides a way to wrap public, private methods (and variable) into a single entity and exposing only the public members to the world outside of module. This allows faster namespace resolution,...

Spring @RequestHeader Annotation example

Spring @RequestHeader Annotation example

Let us quickly check how to access http Header information in Spring MVC Controller. Spring @RequestHeader Annotation Spring MVC provides annotation @RequestHeader that can be used to map controller parameter to request header value....

Java Locale List

Java Locale List

Here is a complete list of Locales in Java. This list is compiled using the mighty java.text.SimpleDateFormat class. The class SimpleDateFormat provides a method getAvailableLocales() which gives array of java.util.Locale objects. This is java...

How to Access Cookies in JSP Expression Language

How to Access Cookies in JSP Expression Language

Below snippet is just for your reference. We can print a cookie value on JSP page using JSP Expression language. The standard syntax to access Http Cookie value in JSP is: ${cookie.<cookie name>.value} So...