My favorites
▼
|
Sign in
jmesa
Table Rendering API
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
330
attachment: HttpServletRequestSpringWebContext.patch
(851 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- old.txt 2011-12-03 15:05:03.150559500 +0100
+++ new.txt 2011-12-03 15:05:08.877887100 +0100
@@ -15,9 +15,13 @@
*/
package org.jmesa.web;
+import java.util.Locale;
+
import javax.servlet.http.HttpServletRequest;
+
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
+import org.springframework.web.servlet.support.RequestContextUtils;
/**
* @since 2.0
@@ -31,4 +35,9 @@ public class HttpServletRequestSpringWeb
public ApplicationContext getApplicationContext() {
return WebApplicationContextUtils.getWebApplicationContext(getHttpServletRequest().getSession().getServletContext());
}
+
+ @Override
+ public Locale getLocale() {
+ return RequestContextUtils.getLocale(getHttpServletRequest());
+ }
}
Powered by
Google Project Hosting