code: public void setLocale(Object loc) throws JspTagException {
          if (loc == null
                  || (loc instanceof String && ((String) loc).length() == 0)) {
              this.locale = null;
          } else if (loc instanceof Locale) {
              this.locale = (Locale) loc;
          } else {
              locale = Util.parseLocale((String) loc);
          }
      }
docs: Sets the style attribute.
  
  @param loc  the locale