예제 #1
0
 public void doTag() throws JspException, IOException {
   PageContext pageContext = (PageContext) getJspContext();
   Locale locale = I18nUtil.findLocale(pageContext);
   if (this.var == null) {
     pageContext.getOut().print(String.valueOf(locale));
   } else {
     pageContext.setAttribute(this.var, locale, this.scope);
   }
 }
예제 #2
0
 public void setScope(String scope) {
   this.scope = I18nUtil.getScope(scope);
 }