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...

Spring MVC Cookie example

Spring MVC Cookie example

In this post we will see how to access and modify http cookies of a webpage in Spring MVC framework. Read Http Cookie in Spring MVC Spring 3 MVC framework provides a very useful...