Fix bug 43909. Make sure locale maps to wrapped ELContext. Patch provided by Tuomas...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 24 Dec 2007 19:24:59 +0000 (19:24 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 24 Dec 2007 19:24:59 +0000 (19:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@606728 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/EvaluationContext.java

index 721cc49..68d77a9 100644 (file)
@@ -17,6 +17,8 @@
 
 package org.apache.el.lang;
 
+import java.util.Locale;
+
 import javax.el.ELContext;
 import javax.el.ELResolver;
 import javax.el.FunctionMapper;
@@ -68,4 +70,12 @@ public final class EvaluationContext extends ELContext {
     public void setPropertyResolved(boolean resolved) {
         this.elContext.setPropertyResolved(resolved);
     }
+    
+    public Locale getLocale() { 
+        return this.elContext.getLocale();
+        }
+
+    public void setLocale(Locale locale) { 
+        this.elContext.setLocale(locale);
+    }
 }