×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Karthick Bala
Added: Jul 25, 2014 10:28 AM
Views: 1
Tags: no tags
  1.  public static Locale getLocale(HttpServletRequest request) {
  2.    if(request == null) {
  3.      return new Locale("en");//No I18N
  4.    }
  5.    return request.getLocale();
  6.  }