diff --git a/WebContent/WEB-INF/jsp/include/tech.jsp b/WebContent/WEB-INF/jsp/include/tech.jsp index 50a8089ce8..635398bc32 100644 --- a/WebContent/WEB-INF/jsp/include/tech.jsp +++ b/WebContent/WEB-INF/jsp/include/tech.jsp @@ -19,6 +19,7 @@ --%><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %><%-- --%><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %><%-- --%><%-- +--%><%-- --%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%-- --%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %><%-- --%><%@ taglib prefix="mango" uri="/WEB-INF/tld/mango.tld" %><%-- diff --git a/src/com/serotonin/mango/web/dwr/BaseDwr.java b/src/com/serotonin/mango/web/dwr/BaseDwr.java index 40c6856c53..f7e7bad1d3 100644 --- a/src/com/serotonin/mango/web/dwr/BaseDwr.java +++ b/src/com/serotonin/mango/web/dwr/BaseDwr.java @@ -18,11 +18,7 @@ */ package com.serotonin.mango.web.dwr; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.ResourceBundle; +import java.util.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.jstl.core.Config; @@ -302,10 +298,7 @@ protected String getMessage(LocalizableMessage message) { } protected ResourceBundle getResourceBundle() { - WebContext webContext = WebContextFactory.get(); - LocalizationContext localizationContext = (LocalizationContext) Config.get(webContext.getHttpServletRequest(), - Config.FMT_LOCALIZATION_CONTEXT); - return localizationContext.getResourceBundle(); + return Common.getBundle(); } public static String generateContent(HttpServletRequest request, String snippet, Map model) {