List of usage examples for javax.servlet.jsp.jstl.core Config set
public static void set(PageContext pc, String name, Object value, int scope)
From source file:com.steeleforge.aem.ironsites.i18n.taglib.I18nHelperTag.java
public int doEndTag() throws JspException { try {//from ww w. ja v a 2 s .co m init(); ValueMap valueMap = request.getResource().adaptTo(ValueMap.class); I18nResourceBundle bundle = new I18nResourceBundle(valueMap, getResourceBundle(getBaseName(), request)); // make this resource bundle & i18n available as ValueMap for TEI pageContext.setAttribute(getMessagesName(), bundle.adaptTo(ValueMap.class), PageContext.PAGE_SCOPE); pageContext.setAttribute(getI18nName(), new I18n(bundle), PageContext.PAGE_SCOPE); // make this resource bundle available for fmt functions Config.set(pageContext, "javax.servlet.jsp.jstl.fmt.localizationContext", new LocalizationContext(bundle, getLocale(request)), 1); } catch (Exception e) { LOG.error(e.getMessage()); throw new JspException(e); } return EVAL_PAGE; }